Miscellaneous common utility functions.
Functions
to_enum(value, enum)
to_enum
Coerce literal to the specified enum type.
value (str | T) – Either an enum member, its underlying value string, or its member name.
enum (type[T]) – The enum type to coerce the value into.
T