Skip to content

Commit 43987e4

Browse files
committed
Reformat with ruff.
1 parent 80c8df1 commit 43987e4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/generate_content/test_config_span_attributes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919

2020
class ConfigSpanAttributesTestCase(TestCase):
21-
2221
def setUp(self):
2322
super().setUp()
2423
self.configure_valid_response(text="Some response")

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/utils/test_dict_util.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def test_flatten_with_renaming():
8282
"float_key": 3.14,
8383
"bool_key": True,
8484
}
85-
output = dict_util.flatten_dict(input_dict, rename_keys={"float_key": "math_key"})
85+
output = dict_util.flatten_dict(
86+
input_dict, rename_keys={"float_key": "math_key"}
87+
)
8688
assert "float_key" not in output
8789
assert "math_key" in output
8890
assert output == {
@@ -128,7 +130,9 @@ def summarize_int_list(key, value, **kwargs):
128130
},
129131
"other": [1, 2, 3, 4, 5, 6, 7, 8, 9],
130132
}
131-
output = dict_util.flatten_dict(input_dict, flatten_functions=flatten_functions)
133+
output = dict_util.flatten_dict(
134+
input_dict, flatten_functions=flatten_functions
135+
)
132136
assert output == {
133137
"some.deeply.nested.key": "9 items (total: 45, average: 5.0)",
134138
"other": [1, 2, 3, 4, 5, 6, 7, 8, 9],

0 commit comments

Comments
 (0)