Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.11 Support #133

Open
brianwawok opened this issue Dec 15, 2022 · 1 comment
Open

Python 3.11 Support #133

brianwawok opened this issue Dec 15, 2022 · 1 comment

Comments

@brianwawok
Copy link

brianwawok commented Dec 15, 2022

Looks like some tweaks are going to be needed to work in Python 3.11?

https://docs.python.org/3/whatsnew/3.11.html#enum

File "/python3.11/site-packages/enumfields/enums.py", line 17, in new
attrs._member_names.remove('Labels')
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'remove'

@akx
Copy link
Contributor

akx commented Dec 29, 2022

My fork https://github.com/akx/django-enumfields2 (https://pypi.org/project/django-enumfields2) is compatible with Python 3.11. It's a drop-in replacement, so just pip uninstall django-enumfields and pip install django-enumfields2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants