Skip to content

[Python 3.11] AttributeError: NoneType object has no attribute __name__ #2

@demberto

Description

@demberto
Traceback:
    fastenum.enable()
.tox\py311\Lib\site-packages\fastenum\__init__.py:24: in enable
    Patch.enable_patches()
.tox\py311\Lib\site-packages\fastenum\parcher.py:154: in enable_patches
    patch.enable(check)
.tox\py311\Lib\site-packages\fastenum\parcher.py:110: in enable
    cls.__run_on_instance__(obj)
.tox\py311\Lib\site-packages\fastenum\patches.py:53: in __run_on_instance__
    instance.alias = f'_cls_attr_{instance.fget.__name__}'
E   AttributeError: 'NoneType' object has no attribute '__name__'

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions