Let's say I have the following Python enum class:
class FooEnum(IntEnum):
foo = auto()
bar = auto()
baz = auto()
And I also have the strings "FooEnum"
and "bar"
. Both of the strings come from HTML select values, which are limited to basic types.
Can I turn these strings directly into a FooEnum.bar
?