1 parent 6d96bb4 commit 00226baCopy full SHA for 00226ba
1 file changed
src/nuketesting/checks/base_classes.py
@@ -77,7 +77,7 @@ def __bool__(self) -> bool:
77
78
def __eq__(self, other: bool | Check) -> bool:
79
"""Compare the check result to another result or boolean."""
80
- if not isinstance(other, bool | Check):
+ if not isinstance(other, (bool, Check)):
81
return False
82
83
return self.check() == bool(other)
0 commit comments