We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4565968 commit c8b6530Copy full SHA for c8b6530
1 file changed
pyiceberg/table/update/snapshot.py
@@ -924,12 +924,15 @@ class ExpireSnapshots(UpdateTableMetadata["ExpireSnapshots"]):
924
Pending changes are applied on commit.
925
"""
926
927
+ _updates: Tuple[TableUpdate, ...]
928
+ _requirements: Tuple[TableRequirement, ...]
929
+ _snapshot_ids_to_expire: Set[int]
930
+
931
def __init__(self, transaction: Transaction) -> None:
932
super().__init__(transaction)
- # Initialize instance-level attributes to avoid sharing state between instances
- self._snapshot_ids_to_expire: Set[int] = set()
- self._updates: Tuple[TableUpdate, ...] = ()
- self._requirements: Tuple[TableRequirement, ...] = ()
933
+ self._updates = ()
934
+ self._requirements = ()
935
+ self._snapshot_ids_to_expire = set()
936
937
def _commit(self) -> UpdatesAndRequirements:
938
0 commit comments