From a5af3b881640b0755073d5a9777fee26c1bb56b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Thu, 26 May 2022 16:56:01 +0200 Subject: [PATCH] dependency: remove Python 2 legacy __ne__ implementation --- src/poetry/core/packages/dependency.py | 3 --- 1 file changed, 3 deletions(-) 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__()