Skip to content

Commit d30a08c

Browse files
committed
Fixed format and linting issues
Re-ran the `poetry run pre-commit run --all-files` command on the project.
1 parent 5acd690 commit d30a08c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyiceberg/table/update/snapshot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def _commit(self) -> UpdatesAndRequirements:
869869
This will remove the snapshots with the given IDs.
870870
871871
Returns:
872-
Tuple of updates and requirements to be committed,
872+
Tuple of updates and requirements to be committed,
873873
as requried by the calling parent apply functions.
874874
"""
875875
update = RemoveSnapshotsUpdate(snapshot_ids=self._snapshot_ids_to_expire)
@@ -910,4 +910,4 @@ def expire_snapshots_older_than(self, timestamp_ms: int) -> ManageSnapshots:
910910
if snapshots_to_remove:
911911
for snapshot_id in snapshots_to_remove:
912912
self._snapshot_ids_to_expire.add(snapshot_id)
913-
return self
913+
return self

tests/table/test_expire_snapshots.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ def test_expire_snapshot(table_v2: Table) -> None:
88
# Mock the catalog's commit_table method
99
mock_response = CommitTableResponse(
1010
# Use the table's current metadata but keep only the snapshot not to be expired
11-
metadata=table_v2.metadata.model_copy(update={"snapshots": [KEEP_SNAPSHOT]}),
11+
metadata=table_v2.metadata.model_copy(update={"snapshots": [KEEP_SNAPSHOT]}),
1212
metadata_location="mock://metadata/location",
13-
uuid=uuid4()
13+
uuid=uuid4()
1414
)
1515

1616
# Mock the commit_table method to return the mock response
@@ -38,4 +38,4 @@ def test_expire_snapshot(table_v2: Table) -> None:
3838
assert EXPIRE_SNAPSHOT not in remaining_snapshots
3939

4040
# Assert the length of snapshots after expiration
41-
assert len(table_v2.metadata.snapshots) == 1
41+
assert len(table_v2.metadata.snapshots) == 1

0 commit comments

Comments
 (0)