2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-30 13:57:54 +00:00

Add __repr__ to enumerations

This commit is contained in:
Dan
2022-04-24 11:56:07 +02:00
parent a34ee4b444
commit 5c0806a8a9

View File

@@ -22,3 +22,6 @@ from enum import Enum
class AutoName(Enum): class AutoName(Enum):
def _generate_next_value_(self, *args): def _generate_next_value_(self, *args):
return self.lower() return self.lower()
def __repr__(self):
return f"pyrogram.enums.{self}"