Skip to content

Commit 87e06b8

Browse files
committed
fix
1 parent 414cb0a commit 87e06b8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

azure/functions/meta.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@
2222

2323

2424
def is_iterable_type_annotation(annotation: object, pytype: object) -> bool:
25-
is_iterable_anno = typing_inspect.is_generic_type(annotation) and issubclass(get_origin(annotation), collections.abc.Iterable)
25+
is_iterable_anno = (
26+
typing_inspect.is_generic_type(annotation)
27+
and issubclass(typing_inspect.get_origin(annotation),
28+
collections.abc.Iterable)
29+
)
2630

2731
if sys.version_info >= (3, 9):
2832
# After python 3.9, standard collection types are supported in type hint
2933
origin = get_origin(annotation)
30-
is_iterable_anno = origin is not None and issubclass(origin, collections.abc.Iterable)
34+
is_iterable_anno = (origin is not None
35+
and issubclass(origin, collections.abc.Iterable))
3136

3237
if not is_iterable_anno:
3338
return False

0 commit comments

Comments
 (0)