Skip to content

Commit 92a0698

Browse files
committed
Ruff format
1 parent d65d2b6 commit 92a0698

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

duckdb/experimental/spark/sql/types.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,9 +1038,7 @@ def __eq__(self, other: object) -> bool:
10381038
MapType,
10391039
StructType,
10401040
]
1041-
_all_complex_types: dict[str, type[Union[ArrayType, MapType, StructType]]] = {
1042-
v.typeName(): v for v in _complex_types
1043-
}
1041+
_all_complex_types: dict[str, type[Union[ArrayType, MapType, StructType]]] = {v.typeName(): v for v in _complex_types}
10441042

10451043

10461044
_FIXED_DECIMAL = re.compile(r"decimal\(\s*(\d+)\s*,\s*(-?\d+)\s*\)")

tests/fast/relational_api/test_rapi_aggregations.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,7 @@ def test_quantile_cont(self, table):
320320
expected = [(2.0,)]
321321
assert len(result) == len(expected)
322322
assert all(r == e for r, e in zip(result, expected))
323-
result = [
324-
[round(x, 2) for x in r[0]] for r in table.quantile_cont("v", q=[0.1, 0.5]).execute().fetchall()
325-
]
323+
result = [[round(x, 2) for x in r[0]] for r in table.quantile_cont("v", q=[0.1, 0.5]).execute().fetchall()]
326324
expected = [[0.2, 2.0]]
327325
assert len(result) == len(expected)
328326
assert all(r == e for r, e in zip(result, expected))

0 commit comments

Comments
 (0)