We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 758a172 commit 75f484dCopy full SHA for 75f484d
src/pip/_internal/utils/misc.py
@@ -542,10 +542,9 @@ def __str__(self) -> str:
542
return self.redacted
543
544
# This is useful for testing.
545
- def __eq__(self, other: Any) -> bool:
546
- if type(self) is not type(other):
+ def __eq__(self, other: object) -> bool:
+ if type(self) is not type(other) or not isinstance(other, HiddenText):
547
return False
548
-
549
# The string being used for redaction doesn't also have to match,
550
# just the raw, original string.
551
return self.secret == other.secret
0 commit comments