Skip to content

Commit d7f4daa

Browse files
committed
made the check for other to be based on isinstance rather than attrs.has
1 parent e2b3c8d commit d7f4daa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/compose/base/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def __iter__(self) -> ty.Generator[str, None, None]:
404404
def __eq__(self, other: ty.Any) -> bool:
405405
"""Check if two tasks are equal"""
406406
values = attrs.asdict(self, recurse=False)
407-
if not attrs.has(other):
407+
if not isinstance(other, Task):
408408
return False
409409
try:
410410
other_values = attrs.asdict(other, recurse=False)

0 commit comments

Comments
 (0)