code/code: remove redundant __ne__ implementation

This implementation is the default when __eq__ is implemented.
This commit is contained in:
Ran Benita 2020-07-10 12:05:15 +03:00
parent 85ef2bf698
commit c8676002a7
1 changed files with 0 additions and 3 deletions

View File

@ -69,9 +69,6 @@ class Code:
# Ignore type because of https://github.com/python/mypy/issues/4266.
__hash__ = None # type: ignore
def __ne__(self, other):
return not self == other
@property
def path(self) -> Union[py.path.local, str]:
"""Return a path object pointing to source code (or a str in case