Skip to content

Commit f1cbb17

Browse files
authored
style: correct Locale repr.
1 parent f4f4284 commit f1cbb17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interactions/enums.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from enum import IntEnum, StrEnum
1+
from enum import IntEnum, Enum
22

33

44
class ApplicationCommandType(IntEnum):
@@ -147,9 +147,9 @@ class TextStyleType(IntEnum):
147147
PARAGRAPH = 2
148148

149149

150-
class Locale(StrEnum):
150+
class Locale(str, Enum):
151151
"""
152-
A string enum representing Discord locales
152+
An enumerable object representing Discord locales.
153153
"""
154154

155155
ENGLISH_US = "en_US"

0 commit comments

Comments
 (0)