Skip to content
Snippets Groups Projects
Commit 0445658f authored by Matthias Diener's avatar Matthias Diener
Browse files

force str return

parent e9a9336b
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ def _ary_container_key_stringifier(keys: Tuple[Any, ...]) -> str:
"""
def _rec_str(key: Any) -> str:
if isinstance(key, (str, int)):
return key
return str(key)
elif isinstance(key, tuple):
return "tup" + "_".join(_rec_str(k) for k in key) + "endtup"
else:
......
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