From 0c06f15929e68808ef9cf49d49d3959e7caadb16 Mon Sep 17 00:00:00 2001 From: Fokko Date: Wed, 15 Jan 2025 21:06:15 +0100 Subject: [PATCH] Revert "Add support for lowercase `FileFormat`(#1362)" This reverts commit 4e755996c11e1768a63d3f3f663bfa77994648b7. --- pyiceberg/manifest.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pyiceberg/manifest.py b/pyiceberg/manifest.py index 598d88cdd8..5a32a6330c 100644 --- a/pyiceberg/manifest.py +++ b/pyiceberg/manifest.py @@ -94,16 +94,9 @@ def __repr__(self) -> str: class FileFormat(str, Enum): - AVRO = "AVRO", "avro" - PARQUET = "PARQUET", "parquet" - ORC = "ORC", "orc" - - def __new__(cls, value: str, *value_aliases: List[str]) -> "FileFormat": - obj = str.__new__(cls) - obj._value_ = value - for alias in value_aliases: - cls._value2member_map_[alias] = obj - return obj + AVRO = "AVRO" + PARQUET = "PARQUET" + ORC = "ORC" @classmethod def _missing_(cls, value: object) -> Union[None, str]: