Skip to content

Commit 0346117

Browse files
committed
fix: support str type from faas handlers
1 parent 439c13e commit 0346117

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nitric/faas/faas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ async def _register_faas_worker(
3333
func: Callable[
3434
[Trigger],
3535
Union[
36-
Coroutine[Any, Any, Union[Response, None, dict, list, set, bytes]],
37-
Union[Response, None, dict, list, set, bytes],
36+
Coroutine[Any, Any, Union[Response, None, str, dict, list, set, bytes]],
37+
Union[Response, None, str, dict, list, set, bytes],
3838
],
3939
]
4040
):
@@ -110,7 +110,7 @@ async def _register_faas_worker(
110110
channel.close()
111111

112112

113-
def start(handler: Callable[[Trigger], Coroutine[Any, Any, Union[Response, None, dict, list, set, bytes]]]):
113+
def start(handler: Callable[[Trigger], Coroutine[Any, Any, Union[Response, None, str, dict, list, set, bytes]]]):
114114
"""
115115
Register the provided function as the trigger handler and starts handling new trigger requests.
116116

0 commit comments

Comments
 (0)