Module enums

Source

Functions§

parse_enum
Converts a raw string to the enum E, returning a nicely‑formatted PyValueError if the string does not match any variant.