Skip to content
Snippets Groups Projects
Commit c18fc722 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

added stringify

parent 27697e96
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import typing as tp
__all__ = ['stringify']
def stringify(dct: tp.Union[dict, list], stringifier: tp.Callable[[tp.Any], str]) -> tp.Dict[str, str]:
def stringify(dct: tp.Union[dict, list], stringifier: tp.Callable[[tp.Any], str] = str) -> tp.Dict[str, str]:
"""
Stringify all object, ie. put every item and key (if a dict is given) through stringify.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment