Skip to content

Commit

Permalink
And again
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibo-Joshi committed Apr 26, 2024
1 parent 2a673c5 commit f47fc0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram/_utils/enum.py
Expand Up @@ -60,12 +60,12 @@ def __str__(self) -> str:


# Apply the __repr__ modification and __str__ fix to IntEnum
class IntEnum(_enum.IntEnum):
class IntEnum(_enum.IntEnum): # pylint: disable=invalid-slots
"""Helper class for int enums where ``str(member)`` prints the value, but ``repr(member)``
gives ``EnumName.MEMBER_NAME``.
"""

__slots__ = () # pylint: disable=invalid-slots
__slots__ = ()

def __repr__(self) -> str:
return f"<{self.__class__.__name__}.{self.name}>"
Expand Down

0 comments on commit f47fc0e

Please sign in to comment.