Skip to content

Commit 05c238e

Browse files
Linting
1 parent 728a2c7 commit 05c238e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pyiceberg/catalog/rest/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,9 @@ def replace_table_transaction(
974974
)
975975

976976
# Assign fresh schema IDs, reusing IDs from the existing schema by field name
977-
fresh_schema, _ = assign_fresh_schema_ids_for_replace(iceberg_schema, existing_metadata.schema(), existing_metadata.last_column_id)
977+
fresh_schema, _ = assign_fresh_schema_ids_for_replace(
978+
iceberg_schema, existing_metadata.schema(), existing_metadata.last_column_id
979+
)
978980

979981
# Assign fresh partition spec IDs, reusing IDs from existing specs
980982
fresh_partition_spec, _ = assign_fresh_partition_spec_ids_for_replace(

tests/integration/test_rest_catalog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from pyiceberg.exceptions import NoSuchTableError
2626
from pyiceberg.io.pyarrow import _dataframe_to_data_files
2727
from pyiceberg.schema import Schema
28-
from pyiceberg.table import StagedTable
2928
from pyiceberg.types import BooleanType, IntegerType, LongType, NestedField, StringType
3029

3130
TEST_NAMESPACE_IDENTIFIER = "TEST NS"
@@ -104,8 +103,9 @@ def test_replace_table_transaction(catalog: Catalog, format_version: int) -> Non
104103
snapshot_update.append_data_file(data_file)
105104

106105
original.refresh()
107-
assert original.current_snapshot() is not None
108-
original_snapshot_id = original.current_snapshot().snapshot_id
106+
current_snapshot = original.current_snapshot()
107+
assert current_snapshot is not None
108+
original_snapshot_id = current_snapshot.snapshot_id
109109

110110
# Replace with a new schema
111111
new_schema = Schema(

0 commit comments

Comments
 (0)