Skip to content

Commit f7c1a60

Browse files
committed
remove mypy ignore
1 parent 2831e5a commit f7c1a60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyiceberg/table/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ def snapshot_as_of_timestamp(self, timestamp_ms: int, inclusive: bool = True) ->
13051305

13061306
def current_ancestors(self) -> Iterable[Snapshot]:
13071307
"""Get a list of ancestors of and including the current snapshot."""
1308-
return ancestors_of(self.current_snapshot(), self.metadata) # type: ignore
1308+
return ancestors_of(self.current_snapshot(), self.metadata)
13091309

13101310
def history(self) -> List[SnapshotLogEntry]:
13111311
"""Get the snapshot history of this table."""

pyiceberg/table/snapshots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def set_when_positive(properties: Dict[str, str], num: int, property_name: str)
419419
properties[property_name] = str(num)
420420

421421

422-
def ancestors_of(current_snapshot: Snapshot, table_metadata: TableMetadata) -> Iterable[Snapshot]:
422+
def ancestors_of(current_snapshot: Optional[Snapshot], table_metadata: TableMetadata) -> Iterable[Snapshot]:
423423
"""Get the ancestors of and including the given snapshot."""
424424
if current_snapshot:
425425
yield current_snapshot

0 commit comments

Comments
 (0)