Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Nov 30, 2024
1 parent a60a48e commit 82db070
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion dlt/common/libs/pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,14 @@ def row_tuples_to_arrow(
" extracting an SQL VIEW that selects with cast."
)
json_str_array = pa.array(
[None if s is None else json.dumps(s) if not issubclass(type(s), set) else json.dumps(list(s)) for s in columnar_known_types[field.name]]
[
(
None
if s is None
else json.dumps(s) if not issubclass(type(s), set) else json.dumps(list(s))
)
for s in columnar_known_types[field.name]
]
)
columnar_known_types[field.name] = json_str_array

Expand Down
2 changes: 1 addition & 1 deletion tests/common/schema/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def assert_new_schema_props_custom_normalizers(schema: Schema) -> None:
def assert_is_new_schema(schema: Schema) -> None:
assert schema.stored_version is None
assert schema.stored_version_hash is None
assert schema.ENGINE_VERSION == 10
assert schema.ENGINE_VERSION == 11
assert schema._stored_previous_hashes == []
assert schema.is_modified
assert schema.is_new
Expand Down

0 comments on commit 82db070

Please sign in to comment.