Skip to content

Commit 6583719

Browse files
committed
fix
1 parent 87e06b8 commit 6583719

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

azure/functions/meta.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222

2323

2424
def is_iterable_type_annotation(annotation: object, pytype: object) -> bool:
25-
is_iterable_anno = (
26-
typing_inspect.is_generic_type(annotation)
27-
and issubclass(typing_inspect.get_origin(annotation),
28-
collections.abc.Iterable)
29-
)
30-
3125
if sys.version_info >= (3, 9):
32-
# After python 3.9, standard collection types are supported in type hint
26+
# Since python 3.9, standard collection types are supported in type hint
3327
origin = get_origin(annotation)
3428
is_iterable_anno = (origin is not None
3529
and issubclass(origin, collections.abc.Iterable))
36-
30+
else:
31+
is_iterable_anno = (
32+
typing_inspect.is_generic_type(annotation)
33+
and issubclass(typing_inspect.get_origin(annotation),
34+
collections.abc.Iterable)
35+
)
36+
3737
if not is_iterable_anno:
3838
return False
3939

0 commit comments

Comments
 (0)