mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-27 08:50:38 +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):
|
if isinstance(other, Defaults):
|
||||||
return all(getattr(self, attr) == getattr(other, attr) for attr in self.__slots__)
|
return all(getattr(self, attr) == getattr(other, attr) for attr in self.__slots__)
|
||||||
return False
|
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
|
from tests.auxil.slots import mro_slots
|
||||||
|
|
||||||
|
|
||||||
class TestDefault:
|
class TestDefaults:
|
||||||
def test_slot_behaviour(self):
|
def test_slot_behaviour(self):
|
||||||
a = Defaults(parse_mode="HTML", quote=True)
|
a = Defaults(parse_mode="HTML", quote=True)
|
||||||
for attr in a.__slots__:
|
for attr in a.__slots__:
|
Loading…
Add table
Reference in a new issue