Skip to content

Commit

Permalink
black 2025 reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Jan 29, 2025
1 parent b1adf8f commit aae80d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cwltool/load_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def fetch_document(


def _convert_stdstreams_to_files(
workflowobj: Union[CWLObjectType, MutableSequence[Union[CWLObjectType, str, int]], str]
workflowobj: Union[CWLObjectType, MutableSequence[Union[CWLObjectType, str, int]], str],
) -> None:
if isinstance(workflowobj, MutableMapping):
if workflowobj.get("class") == "CommandLineTool":
Expand Down Expand Up @@ -219,7 +219,7 @@ def _convert_stdstreams_to_files(


def _add_blank_ids(
workflowobj: Union[CWLObjectType, MutableSequence[Union[CWLObjectType, str]]]
workflowobj: Union[CWLObjectType, MutableSequence[Union[CWLObjectType, str]]],
) -> None:
if isinstance(workflowobj, MutableMapping):
if (
Expand Down Expand Up @@ -247,7 +247,7 @@ def _add_blank_ids(


def _fast_parser_convert_stdstreams_to_files(
processobj: Union[cwl_v1_2.Process, MutableSequence[cwl_v1_2.Process]]
processobj: Union[cwl_v1_2.Process, MutableSequence[cwl_v1_2.Process]],
) -> None:
if isinstance(processobj, cwl_v1_2.CommandLineTool):
cwl_v1_2_utils.convert_stdstreams_to_files(processobj)
Expand Down
2 changes: 1 addition & 1 deletion cwltool/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def relocateOutputs(
return outputObj

def _collectDirEntries(
obj: Union[CWLObjectType, MutableSequence[CWLObjectType], None]
obj: Union[CWLObjectType, MutableSequence[CWLObjectType], None],
) -> Iterator[CWLObjectType]:
if isinstance(obj, dict):
if obj.get("class") in ("File", "Directory"):
Expand Down
2 changes: 1 addition & 1 deletion cwltool/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def normalizeFilesDirs(
MutableMapping[str, Any],
DirectoryType,
]
]
],
) -> None:
def addLocation(d: dict[str, Any]) -> None:
if "location" not in d:
Expand Down

0 comments on commit aae80d5

Please sign in to comment.