From 00e2f44e231bf6c7daf34465df34fc8aca68d5e1 Mon Sep 17 00:00:00 2001 From: chinmay-bhat <12948588+chinmay-bhat@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:30:59 +0530 Subject: [PATCH] small fix --- pyiceberg/table/snapshots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyiceberg/table/snapshots.py b/pyiceberg/table/snapshots.py index aadeea6f06..d0d6f637a0 100644 --- a/pyiceberg/table/snapshots.py +++ b/pyiceberg/table/snapshots.py @@ -252,10 +252,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 []