Skip to content

Commit

Permalink
code/code: remove redundant __ne__ implementation
Browse files Browse the repository at this point in the history
This implementation is the default when __eq__ is implemented.
  • Loading branch information
bluetech committed Jul 10, 2020
1 parent b50df3d commit 6e7b688
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/_pytest/_code/code.py
Expand Up @@ -69,9 +69,6 @@ def __eq__(self, other):
# 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
Expand Down

0 comments on commit 6e7b688

Please sign in to comment.