Skip to content

Commit 84bc02f

Browse files
committed
add better string representation for Process objects
1 parent e6a1e1f commit 84bc02f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cwltool/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __init__(self, kwargs: Optional[Dict[str, Any]] = None) -> None:
127127
self.basedir = "" # type: str
128128
self.toplevel = False # type: bool
129129
self.mutation_manager = None # type: Optional[MutationManager]
130-
self.make_fs_access = StdFsAccess # type: Callable[[str], StdFsAccess]
130+
self.make_fs_access = StdFsAccess
131131
self.path_mapper = PathMapper
132132
self.builder = None # type: Optional[Builder]
133133
self.docker_outdir = "" # type: str

cwltool/process.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,10 @@ def job(
10761076
) -> JobsGeneratorType:
10771077
pass
10781078

1079+
def __str__(self) -> str:
1080+
"""Return the id of this CWL process."""
1081+
return f"{self.__module__}: {self.tool['id']}"
1082+
10791083

10801084
_names = set() # type: Set[str]
10811085

0 commit comments

Comments
 (0)