Skip to content

Commit 0c06f15

Browse files
committed
Revert "Add support for lowercase FileFormat(#1362)"
This reverts commit 4e75599.
1 parent 4e75599 commit 0c06f15

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

pyiceberg/manifest.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,9 @@ def __repr__(self) -> str:
9494

9595

9696
class FileFormat(str, Enum):
97-
AVRO = "AVRO", "avro"
98-
PARQUET = "PARQUET", "parquet"
99-
ORC = "ORC", "orc"
100-
101-
def __new__(cls, value: str, *value_aliases: List[str]) -> "FileFormat":
102-
obj = str.__new__(cls)
103-
obj._value_ = value
104-
for alias in value_aliases:
105-
cls._value2member_map_[alias] = obj
106-
return obj
97+
AVRO = "AVRO"
98+
PARQUET = "PARQUET"
99+
ORC = "ORC"
107100

108101
@classmethod
109102
def _missing_(cls, value: object) -> Union[None, str]:

0 commit comments

Comments
 (0)