Skip to content

Commit

Permalink
Revert "Add support for lowercase FileFormat(#1362)"
Browse files Browse the repository at this point in the history
This reverts commit 4e75599.
  • Loading branch information
Fokko committed Jan 15, 2025
1 parent 4e75599 commit 0c06f15
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions pyiceberg/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 0c06f15

Please sign in to comment.