From 5c0806a8a94079809c54899170fd4c3bfb652325 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 24 Apr 2022 11:56:07 +0200 Subject: [PATCH] Add __repr__ to enumerations --- pyrogram/enums/auto_name.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyrogram/enums/auto_name.py b/pyrogram/enums/auto_name.py index b1d10d10..b43fa741 100644 --- a/pyrogram/enums/auto_name.py +++ b/pyrogram/enums/auto_name.py @@ -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}"