Skip to content

Commit 40931b9

Browse files
committed
dependency: remove Python 2 legacy __ne__ implementation
1 parent 2d6aa90 commit 40931b9

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/poetry/core/packages/dependency.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,6 @@ def __eq__(self, other: Any) -> bool:
622622

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

625-
def __ne__(self, other: Any) -> bool:
626-
return not self.__eq__(other)
627-
628625
def __hash__(self) -> int:
629626
# don't include _constraint in hash because it is mutable!
630627
return super().__hash__()

0 commit comments

Comments
 (0)