mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Add __repr__ to enumerations
This commit is contained in:
parent
a34ee4b444
commit
5c0806a8a9
1 changed files with 3 additions and 0 deletions
|
|
@ -22,3 +22,6 @@ from enum import Enum
|
|||
class AutoName(Enum):
|
||||
def _generate_next_value_(self, *args):
|
||||
return self.lower()
|
||||
|
||||
def __repr__(self):
|
||||
return f"pyrogram.enums.{self}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue