aenum icon indicating copy to clipboard operation
aenum copied to clipboard

Advanced Enumerations for Python

Results 17 aenum issues
Sort by recently updated
recently updated
newest added

16:01 ~ $ cat test.py """Test module""" from aenum import AutoNumberEnum class Status(AutoNumberEnum, init='task_idx'): """Status enum""" STARTED = () RUNNING = () FINISTED = () FAILED = () def test():...

Hay, Thanks for the extension of enum in python. Could you add a Licence to this Repo?

Following the example from https://stackoverflow.com/questions/28126314/adding-members-to-python-enums but using IntEnum instead of Enum, yield an error. ``` from aenum import IntEnum from aenum import extend_enum class ColorHelp(IntEnum): _init_ = 'value __doc__' black...

Using Python 3.7 on Debian Buster 10.9 development host (target system is actually python2.7 based system). The following code snippet gives a mypy error when I use aenum.Enum. ``` Argument...

Skip some tests that are failing with latest python 3.12

aenum: ` aenum-3.1.12` Mypy: `mypy-1.3.0` Python: `Python 3.11.3` `mypy` complains `Type[IterFailingEnum]" has no attribute "__iter__" (not iterable) [attr-defined]` when trying to iterate over `anum.Enum` subclass. `mypy` does not complain when...

I suggest to add direct support of abstract base classes and protocols mixins to aenum (and stdlib enum if possible). Currently addition of ABC/Protocol mixin to Enum raises errors: >...

If auto has non-value arguments and is called successively all following calls will be set to the previous value. e.g. ```python3 from aenum import Enum, auto class A(Enum): _init_ =...

class MyEnum(AutoClassStrEnum): TEST_1 = auto() TEST_2 = auto() assert MyEnum.TEST_1.value == "MyEnum.TEST_1 "

There is an undefined variable name `undefined` in _enum.py causing errors if there are not enough arguments given to `extend_enum` (might be in other cases too but haven't tested) To...