diff --git a/dataclass_wizard/enums.py b/dataclass_wizard/enums.py index 1b9757eb..2d2c455a 100644 --- a/dataclass_wizard/enums.py +++ b/dataclass_wizard/enums.py @@ -27,6 +27,9 @@ class LetterCase(Enum): # Converts strings (generally in camel case) to snake case. # ex: `myFieldName` -> `my_field_name` SNAKE = FuncWrapper(to_snake_case) + # Perfoms no conversion on strings. + # ex: `MY_FIELD_NAME` -> `MY_FIELD_NAME` + NONE = FuncWrapper(lambda s: s) def __call__(self, *args): return self.value.f(*args)