We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6583719 commit 1b8c295Copy full SHA for 1b8c295
azure/functions/meta.py
@@ -23,15 +23,16 @@
23
24
def is_iterable_type_annotation(annotation: object, pytype: object) -> bool:
25
if sys.version_info >= (3, 9):
26
- # Since python 3.9, standard collection types are supported in type hint
+ # Since python 3.9, standard collection types
27
+ # are supported in type hint
28
origin = get_origin(annotation)
29
is_iterable_anno = (origin is not None
30
and issubclass(origin, collections.abc.Iterable))
31
else:
32
is_iterable_anno = (
33
typing_inspect.is_generic_type(annotation)
- and issubclass(typing_inspect.get_origin(annotation),
34
- collections.abc.Iterable)
+ and issubclass(get_origin(annotation),
35
+ collections.abc.Iterable)
36
)
37
38
if not is_iterable_anno:
0 commit comments