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

mypy fix

parent 7fdf6e77
No related branches found
No related tags found
No related merge requests found
...@@ -271,7 +271,7 @@ def _keyed_map_array_container_impl( ...@@ -271,7 +271,7 @@ def _keyed_map_array_container_impl(
if type(_ary) is leaf_cls: # type(ary) is never None if type(_ary) is leaf_cls: # type(ary) is never None
return f(keys, _ary) return f(keys, _ary)
elif is_array_container(_ary): elif is_array_container(_ary):
def _tuple_if_not_tuple(x): def _tuple_if_not_tuple(x: Any) -> tuple:
if not isinstance(x, tuple): if not isinstance(x, tuple):
assert isinstance(x, (str, int)) assert isinstance(x, (str, int))
return x, return x,
......
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