You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "enum_error.py", line 20, in to_dto: No attribute 'value' on None [attribute-error]
In Optional[Union[Any, str]]
Called from (traceback):
line 45, in current file
line 37, in test_enums
File "enum_error.py", line 20, in to_dto: No attribute 'value' on str [attribute-error]
In Optional[Union[Any, str]]
Called from (traceback):
line 45, in current file
line 37, in test_enums
However no error is produced if you remove the dataclass (i.e. just assigning to my_value), and also no error is produced when removing the metaclass from MyEnum
The text was updated successfully, but these errors were encountered:
Given the following code:
produces the following errors:
However no error is produced if you remove the dataclass (i.e. just assigning to
my_value
), and also no error is produced when removing the metaclass fromMyEnum
The text was updated successfully, but these errors were encountered: