Drop redundant custom MarkDecorator __eq__ implementation

This is already covered by attrs.

Also, the custom implementation returns False when the types don't
match, but it's better to return `NotImplemented`. attrs does this.
This commit is contained in:
Ran Benita 2019-11-08 00:50:32 +02:00
parent 6ad95716da
commit 984d90a811
1 changed files with 0 additions and 3 deletions

View File

@ -213,9 +213,6 @@ class MarkDecorator:
def markname(self):
return self.name # for backward-compat (2.4.1 had this attr)
def __eq__(self, other):
return self.mark == other.mark if isinstance(other, MarkDecorator) else False
def __repr__(self):
return "<MarkDecorator {!r}>".format(self.mark)