Open
Description
Description
Adding enum_tools.autoenum
to Sphinx on Python 3.10 causes the following error:
ImportError: cannot import name '_power_of_two' from 'enum'
Steps to Reproduce
- Install Python 3.10
- Run
make html
withenum_tools.autoenum
installed
Actual result:
ImportError: cannot import name '_power_of_two' from 'enum'
Expected result:
Better enum autodocs
Reproduces how often:
Easily reproduced
Version
- Operating System: Windows 11 22471.1000
- Python: 3.10.0
- enum_tools: 0.6.4
Installation source
PyPi
Other Additional Information:
A solution would be to replace enum_tools/custom_enums.py#L50 with the Python main branch implementation