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
from aenum import IntEnum
from aenum import extend_enum
class ColorHelp(IntEnum):
_init_ = 'value __doc__'
black = 0, 'the absence of color'
extend_enum(ColorHelp, 'white', 1, 'the presence of every color')
Traceback (most recent call last):
File "/tmp/ipykernel_13921/3054020738.py", line 1, in <cell line: 1>
extend_enum(ColorHelp, 'white', 1, 'the presence of every color')
File "/usr/local/lib/python3.10/dist-packages/aenum/init.py", line 3572, in extend_enum
new_member = _new(enumeration, *args, **kwds)
ValueError: invalid literal for int() with base 10: 'the presence of every color'
The text was updated successfully, but these errors were encountered:
Following the example from https://stackoverflow.com/questions/28126314/adding-members-to-python-enums
but using IntEnum instead of Enum, yield an error.
Traceback (most recent call last):
File "/tmp/ipykernel_13921/3054020738.py", line 1, in <cell line: 1>
extend_enum(ColorHelp, 'white', 1, 'the presence of every color')
File "/usr/local/lib/python3.10/dist-packages/aenum/init.py", line 3572, in extend_enum
new_member = _new(enumeration, *args, **kwds)
ValueError: invalid literal for int() with base 10: 'the presence of every color'
The text was updated successfully, but these errors were encountered: