Skip to content

Commit

Permalink
issue #36: typing input/ouput
Browse files Browse the repository at this point in the history
  • Loading branch information
terazus committed Nov 2, 2018
1 parent 0da577e commit f79d30b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cedar/schema2cedar.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ def json_pretty_dump(json_object, output_file):
""" Dump a given json in the given file
:param json_object: the input JSON to dump
:type json_object: dict
:param output_file: the file to dump the JSON to
:type output_file: str
:return: the dumping result
:rtype: string
"""
return json.dump(json_object,
output_file, sort_keys=False, indent=4, separators=(',', ': '))
Expand Down

0 comments on commit f79d30b

Please sign in to comment.