Skip to content

Commit 00226ba

Browse files
committed
Fix instance check for python 3.8.
1 parent 6d96bb4 commit 00226ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nuketesting/checks/base_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __bool__(self) -> bool:
7777

7878
def __eq__(self, other: bool | Check) -> bool:
7979
"""Compare the check result to another result or boolean."""
80-
if not isinstance(other, bool | Check):
80+
if not isinstance(other, (bool, Check)):
8181
return False
8282

8383
return self.check() == bool(other)

0 commit comments

Comments
 (0)