code/code: remove redundant __ne__ implementation
This implementation is the default when __eq__ is implemented.
This commit is contained in:
parent
85ef2bf698
commit
c8676002a7
|
@ -69,9 +69,6 @@ class Code:
|
||||||
# Ignore type because of https://github.com/python/mypy/issues/4266.
|
# Ignore type because of https://github.com/python/mypy/issues/4266.
|
||||||
__hash__ = None # type: ignore
|
__hash__ = None # type: ignore
|
||||||
|
|
||||||
def __ne__(self, other):
|
|
||||||
return not self == other
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def path(self) -> Union[py.path.local, str]:
|
def path(self) -> Union[py.path.local, str]:
|
||||||
"""Return a path object pointing to source code (or a str in case
|
"""Return a path object pointing to source code (or a str in case
|
||||||
|
|
Loading…
Reference in New Issue