From 09d84dad3805f31bb8cf4d4fa5342736258b0588 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Thu, 12 Oct 2023 23:26:57 +0200 Subject: [PATCH] Make `next_sequence_number` private We should only use this in the table module --- pyiceberg/table/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyiceberg/table/__init__.py b/pyiceberg/table/__init__.py index fe89915998..ad36255dab 100644 --- a/pyiceberg/table/__init__.py +++ b/pyiceberg/table/__init__.py @@ -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: