diff --git a/pyiceberg/table/snapshots.py b/pyiceberg/table/snapshots.py index d5721f961..a810196cc 100644 --- a/pyiceberg/table/snapshots.py +++ b/pyiceberg/table/snapshots.py @@ -250,10 +250,10 @@ def __str__(self) -> str: @staticmethod @lru_cache - def _manifests(io: FileIO, manifest_list: str) -> List[ManifestFile]: + def _manifests(io: FileIO, manifest_list: Optional[str]) -> List[ManifestFile]: """Return the manifests for the given snapshot.""" if manifest_list not in (None, ""): - file = io.new_input(manifest_list) + file = io.new_input(manifest_list) # type: ignore return list(read_manifest_list(file)) return []