We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363fd60 commit 6999d68Copy full SHA for 6999d68
django_enum/choices.py
@@ -63,8 +63,10 @@ class FloatChoices(
63
"""
64
65
except (ImportError, ModuleNotFoundError):
66
+ from enum import Enum
67
- class MissingEnumProperties:
68
+ # 3.11 - extend from Enum so base type check does not throw type error
69
+ class MissingEnumProperties(Enum):
70
"""Throw error if choice types are used without enum-properties"""
71
72
def __init__(self, *args, **kwargs):
0 commit comments