From c4f8caf6fe8254d82e5e63ef587b7bddbd91fb52 Mon Sep 17 00:00:00 2001 From: Sergei Izmailov Date: Sat, 16 May 2020 17:33:51 +0300 Subject: [PATCH] documentation/python: add Iterable to recognized typing types. --- documentation/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/python.py b/documentation/python.py index 21fa5171..7dbce47f 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -798,7 +798,7 @@ def _pybind11_default_argument_length(string): raise SyntaxError("Unexpected end of `{}`".format(string)) def map_name_prefix_or_add_typing_suffix(state: State, input_type: str): - if input_type in ['Callable', 'Dict', 'Iterator', 'List', 'Optional', 'Set', 'Tuple', 'Union']: + if input_type in ['Callable', 'Dict', 'Iterator', 'Iterable', 'List', 'Optional', 'Set', 'Tuple', 'Union']: return 'typing.' + input_type else: return map_name_prefix(state, input_type) -- 2.30.2