diff --git a/src/poetry/core/packages/dependency.py b/src/poetry/core/packages/dependency.py index b77e86e92..5c3fd7442 100644 --- a/src/poetry/core/packages/dependency.py +++ b/src/poetry/core/packages/dependency.py @@ -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__()