Skip to content

Commit a5af3b8

Browse files
radoeringabn
authored andcommitted
dependency: remove Python 2 legacy __ne__ implementation
1 parent a5b43a0 commit a5af3b8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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)