chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b8192
)
documentation/python: add Iterable to recognized typing types.
author
Sergei Izmailov
<sergei.a.izmailov@gmail.com>
Sat, 16 May 2020 14:33:51 +0000
(17:33 +0300)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 8 Jun 2020 17:42:29 +0000
(19:42 +0200)
documentation/python.py
patch
|
blob
|
history
diff --git
a/documentation/python.py
b/documentation/python.py
index 21fa51714b7f39b213cc8e7ff1e2589bb43aa73d..7dbce47f3f6093d9b1e7b13b5a9fc03ebf4a8ef9 100755
(executable)
--- 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)