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 6cb1f56 commit 07b29c5Copy full SHA for 07b29c5
ninja_extra/exceptions.py
@@ -71,9 +71,11 @@ def __new__(
71
72
def __eq__(self, other: object) -> bool:
73
r = super().__eq__(other)
74
+ if r is NotImplemented:
75
+ return NotImplemented # pragma: no cover
76
try:
77
return r and self.code == other.code # type: ignore
- except AttributeError:
78
+ except AttributeError: # pragma: no cover
79
return r
80
81
def __ne__(self, other: object) -> bool:
0 commit comments