Skip to content

Commit

Permalink
dependency: remove Python 2 legacy __ne__ implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering authored and abn committed May 26, 2022
1 parent a5b43a0 commit a5af3b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/poetry/core/packages/dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,6 @@ def __eq__(self, other: Any) -> bool:

return super().__eq__(other) and self._constraint == other.constraint

def __ne__(self, other: Any) -> bool:
return not self.__eq__(other)

def __hash__(self) -> int:
# don't include _constraint in hash because it is mutable!
return super().__hash__()
Expand Down

0 comments on commit a5af3b8

Please sign in to comment.