Remove Superfluous Defaults.__ne__ (#3884)

This commit is contained in:
Harshil 2023-09-11 23:12:20 +04:00 committed by GitHub
parent a0decdac28
commit 04b44f4595
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -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

View file

@ -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__: