Skip to content

Commit 9e3f7c7

Browse files
committed
Fix ruff and pydocstyle
1 parent 29feaf7 commit 9e3f7c7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pyiceberg/table/update/snapshot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ def _commit(self) -> UpdatesAndRequirements:
752752

753753
def _remove_ref_snapshot(self, ref_name: str) -> ManageSnapshots:
754754
"""Remove a snapshot ref.
755+
755756
Args:
756757
ref_name: branch / tag name to remove
757758
Stages the updates and requirements for the remove-snapshot-ref.
@@ -796,6 +797,7 @@ def create_tag(self, snapshot_id: int, tag_name: str, max_ref_age_ms: Optional[i
796797
def remove_tag(self, tag_name: str) -> ManageSnapshots:
797798
"""
798799
Remove a tag.
800+
799801
Args:
800802
tag_name (str): name of tag to remove
801803
Returns:
@@ -838,6 +840,7 @@ def create_branch(
838840
def remove_branch(self, branch_name: str) -> ManageSnapshots:
839841
"""
840842
Remove a branch.
843+
841844
Args:
842845
branch_name (str): name of branch to remove
843846
Returns:

tests/table/test_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def test_update_remove_snapshots(table_v2: Table) -> None:
802802
new_metadata = update_table_metadata(table_v2.metadata, (update,))
803803
assert len(new_metadata.snapshots) == 1
804804
assert new_metadata.snapshots[0].snapshot_id == 3055729675574597004
805-
assert new_metadata.snapshots[0].parent_snapshot_id == None
805+
assert new_metadata.snapshots[0].parent_snapshot_id is None
806806
assert new_metadata.current_snapshot_id == 3055729675574597004
807807
assert new_metadata.last_updated_ms > table_v2.metadata.last_updated_ms
808808
assert len(new_metadata.refs) == 1

0 commit comments

Comments
 (0)