Slava
Slava
Hello, @cretz, thank you for the quick follow up. Is the decision by not supporting basic Enum intentional? Are there any known corner-cases that stop adding additional functionality? I can...
As proposal: ``` ... # StrEnum, available in 3.11+ if sys.version_info >= (3, 11): if inspect.isclass(hint) and issubclass(hint, StrEnum): if not isinstance(value, str): raise TypeError( f"Cannot convert to enum {hint},...
Similar enhancement for `(int, Enum)` would be nice. And if both checks do not match, then throw Exception. Because current behaviour is not obvious. Thanks.