Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmay-bhat committed Jun 9, 2024
1 parent 0705e6a commit 43a2f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiceberg/table/snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []

Expand Down

0 comments on commit 43a2f35

Please sign in to comment.