diff --git a/pyiceberg/manifest.py b/pyiceberg/manifest.py index e2352abca6..a56da5fc05 100644 --- a/pyiceberg/manifest.py +++ b/pyiceberg/manifest.py @@ -30,7 +30,7 @@ Optional, Tuple, Type, - Union + Union, ) from cachetools import LRUCache, cached @@ -101,7 +101,7 @@ class FileFormat(str, Enum): @classmethod def _missing_(cls, value: object) -> Union[None, str]: for member in cls: - if getattr(member, "value") == str(value).upper(): + if member.value == str(value).upper(): return member return None