Skip to content

Commit 717c393

Browse files
committed
add missing docstrings
1 parent 5d5c0df commit 717c393

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cwl_utils/graph_split.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,13 @@ def seen_import(entry: MutableMapping[str, Any]) -> bool:
223223

224224

225225
def json_dump(entry: Any, output_file: str) -> None:
226+
"""Output object as JSON."""
226227
with open(output_file, "w", encoding="utf-8") as result_handle:
227228
json.dump(entry, result_handle, indent=4)
228229

229230

230231
def yaml_dump(entry: Any, output_file: str, pretty: bool) -> None:
232+
"""Output object as YAML."""
231233
with open(output_file, "w", encoding="utf-8") as result_handle:
232234
if pretty:
233235
result_handle.write(stringify_dict(entry))

0 commit comments

Comments
 (0)