Skip to content

Commit 8ac4e79

Browse files
committed
fix pylint error
1 parent 5e90f79 commit 8ac4e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_enum/choices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ class DjangoEnumPropertiesMeta(EnumPropertiesMeta, ChoicesMeta):
8383
Needs to be strict subclass of same metaclass as Enum to make it to
8484
the ImportError.
8585
"""
86-
def __init__(self, *args, **kwargs):
86+
def __init__(cls, *args, **kwargs): # pylint: disable=W0231
8787
raise ImportError(
88-
f'{self.__class__.__name__} requires enum-properties to be '
88+
f'{cls.__class__.__name__} requires enum-properties to be '
8989
f'installed.'
9090
)
9191

0 commit comments

Comments
 (0)