[issue46296] Unreachable condition: `if enum_class._member_type_ is object`
Ethan Furman
report at bugs.python.org
Fri Jan 7 15:39:49 EST 2022
Ethan Furman <ethan at stoneleaf.us> added the comment:
Looking through some of my code that prompted that branch, the issue is caused when `_generate_next_value_` modifies the given args -- when `__set_name__` runs it has no way of getting the same results to automatically create the `_value_` attribute.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46296>
_______________________________________
More information about the Python-bugs-list
mailing list