diff --git a/telegram/_utils/enum.py b/telegram/_utils/enum.py index aa370cbd44a..b6053003acf 100644 --- a/telegram/_utils/enum.py +++ b/telegram/_utils/enum.py @@ -65,7 +65,7 @@ class IntEnum(_enum.IntEnum): gives ``EnumName.MEMBER_NAME``. """ - __slots__ = () + __slots__ = () # pylint: disable=invalid-slots def __repr__(self) -> str: return f"<{self.__class__.__name__}.{self.name}>" diff --git a/telegram/constants.py b/telegram/constants.py index 2eac123fc14..8bf1f9eac54 100644 --- a/telegram/constants.py +++ b/telegram/constants.py @@ -29,7 +29,7 @@ * Most of the constants in this module are grouped into enums. """ # TODO: Remove this when https://github.com/PyCQA/pylint/issues/6887 is resolved. -# pylint: disable=invalid-enum-extension +# pylint: disable=invalid-enum-extension,invalid-slots __all__ = [ "BOT_API_VERSION",