Skip to content

Commit 1b8c295

Browse files
committed
fix
1 parent 6583719 commit 1b8c295

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

azure/functions/meta.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@
2323

2424
def is_iterable_type_annotation(annotation: object, pytype: object) -> bool:
2525
if sys.version_info >= (3, 9):
26-
# Since python 3.9, standard collection types are supported in type hint
26+
# Since python 3.9, standard collection types
27+
# are supported in type hint
2728
origin = get_origin(annotation)
2829
is_iterable_anno = (origin is not None
2930
and issubclass(origin, collections.abc.Iterable))
3031
else:
3132
is_iterable_anno = (
3233
typing_inspect.is_generic_type(annotation)
33-
and issubclass(typing_inspect.get_origin(annotation),
34-
collections.abc.Iterable)
34+
and issubclass(get_origin(annotation),
35+
collections.abc.Iterable)
3536
)
3637

3738
if not is_iterable_anno:

0 commit comments

Comments
 (0)