Skip to content

Commit

Permalink
Switch to StrEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
Pliner committed Nov 10, 2024
1 parent 5ea77df commit e732d5a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions marshmallow_recipe/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
_OPTIONS_KEY = "__marshmallow_recipe_options__"


class NoneValueHandling(str, enum.Enum):
IGNORE = "IGNORE"
INCLUDE = "INCLUDE"

def __str__(self) -> str:
return self.value
class NoneValueHandling(enum.StrEnum):
IGNORE = enum.auto()
INCLUDE = enum.auto()


@dataclasses.dataclass(kw_only=True, slots=True, frozen=True)
Expand Down

0 comments on commit e732d5a

Please sign in to comment.