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 1b8c295 commit e1ba535Copy full SHA for e1ba535
azure/functions/meta.py
@@ -22,17 +22,17 @@
22
23
24
def is_iterable_type_annotation(annotation: object, pytype: object) -> bool:
25
+ origin = get_origin(annotation)
26
if sys.version_info >= (3, 9):
27
# Since python 3.9, standard collection types
28
# are supported in type hint
- 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)
34
- and issubclass(get_origin(annotation),
35
- collections.abc.Iterable)
+ and origin is not None
+ and issubclass(origin, collections.abc.Iterable)
36
)
37
38
if not is_iterable_anno:
0 commit comments