mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 06:25:12 +01:00
Remove Superfluous Defaults.__ne__
(#3884)
This commit is contained in:
parent
a0decdac28
commit
04b44f4595
2 changed files with 1 additions and 4 deletions
|
@ -239,6 +239,3 @@ class Defaults:
|
|||
if isinstance(other, Defaults):
|
||||
return all(getattr(self, attr) == getattr(other, attr) for attr in self.__slots__)
|
||||
return False
|
||||
|
||||
def __ne__(self, other: object) -> bool:
|
||||
return not self == other
|
||||
|
|
|
@ -28,7 +28,7 @@ from tests.auxil.envvars import TEST_WITH_OPT_DEPS
|
|||
from tests.auxil.slots import mro_slots
|
||||
|
||||
|
||||
class TestDefault:
|
||||
class TestDefaults:
|
||||
def test_slot_behaviour(self):
|
||||
a = Defaults(parse_mode="HTML", quote=True)
|
||||
for attr in a.__slots__:
|
Loading…
Reference in a new issue