Skip to content

Commit 8a4eb45

Browse files
committed
Add list type annotation for input check
1 parent 66ed117 commit 8a4eb45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

azure/functions/eventhub.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ class EventHubConverter(meta.InConverter, meta.OutConverter,
1111

1212
@classmethod
1313
def check_input_type_annotation(cls, pytype: type) -> bool:
14-
return issubclass(pytype, _eventhub.EventHubEvent)
14+
return (
15+
issubclass(pytype, _eventhub.EventHubEvent)
16+
or issubclass(pytype, typing.List)
17+
)
1518

1619
@classmethod
1720
def check_output_type_annotation(cls, pytype) -> bool:

0 commit comments

Comments
 (0)