mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Move inheritance from str
This commit is contained in:
parent
09136c4b53
commit
fa52de9794
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ import enum
|
|||
from ..utils.enum import AutoName
|
||||
|
||||
|
||||
class ChatAction(str, AutoName):
|
||||
class ChatAction(AutoName):
|
||||
"""
|
||||
This object represents bot actions.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import enum
|
||||
|
||||
|
||||
class AutoName(enum.Enum):
|
||||
class AutoName(str, enum.Enum):
|
||||
|
||||
def _generate_next_value_(self, start, count, last_values) -> str:
|
||||
return self.lower()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue