Skip to content

Commit

Permalink
Make next_sequence_number private (#62)
Browse files Browse the repository at this point in the history
We should only use this in the table module
  • Loading branch information
Fokko authored Oct 13, 2023
1 parent a53b6b5 commit 1e94c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiceberg/table/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def location(self) -> str:
def last_sequence_number(self) -> int:
return self.metadata.last_sequence_number

def next_sequence_number(self) -> int:
def _next_sequence_number(self) -> int:
return INITIAL_SEQUENCE_NUMBER if self.format_version == 1 else self.last_sequence_number + 1

def new_snapshot_id(self) -> int:
Expand Down

0 comments on commit 1e94c52

Please sign in to comment.