Skip to content

Commit 9961ab3

Browse files
committed
Fix mypy: too complex type interference for it
1 parent f5c573a commit 9961ab3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exec_helpers/exec_result.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,11 @@ def __eq__(self, other: object) -> bool:
775775
or issubclass(self.__class__, other.__class__)
776776
or issubclass(other.__class__, self.__class__)
777777
) and (
778-
self.cmd == other.cmd
779-
and self.stdin == other.stdin
780-
and self.stdout == other.stdout
781-
and self.stderr == other.stderr
782-
and self.exit_code == other.exit_code
778+
self.cmd == other.cmd # type: ignore[attr-defined]
779+
and self.stdin == other.stdin # type: ignore[attr-defined]
780+
and self.stdout == other.stdout # type: ignore[attr-defined]
781+
and self.stderr == other.stderr # type: ignore[attr-defined]
782+
and self.exit_code == other.exit_code # type: ignore[attr-defined]
783783
)
784784

785785
def __ne__(self, other: object) -> bool:

0 commit comments

Comments
 (0)