Skip to content

Commit

Permalink
Check for class instances of AbstractPath in extract_paths (pull requ…
Browse files Browse the repository at this point in the history
…est #145)
  • Loading branch information
curufinwe authored Sep 8, 2023
2 parents 24ff5f0 + 50782c6 commit 157a3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sisyphus/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def extract_paths(args: Any) -> Set:
visited_obj_ids[id(obj)] = obj
if isinstance(obj, Block) or isinstance(obj, enum.Enum):
continue
if hasattr(obj, '_sis_path') and obj._sis_path is True:
if hasattr(obj, '_sis_path') and obj._sis_path is True and not type(obj) is type:
out.add(obj)
elif isinstance(obj, (list, tuple, set)):
queue.extend(obj)
Expand Down

0 comments on commit 157a3d6

Please sign in to comment.