From 03461172991c0f4d332d07bd61a15bd66e08c6f7 Mon Sep 17 00:00:00 2001 From: Jye Cusch Date: Wed, 1 Sep 2021 13:58:14 +1000 Subject: [PATCH] fix: support str type from faas handlers --- nitric/faas/faas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nitric/faas/faas.py b/nitric/faas/faas.py index e654ae4..ee58b79 100644 --- a/nitric/faas/faas.py +++ b/nitric/faas/faas.py @@ -33,8 +33,8 @@ async def _register_faas_worker( func: Callable[ [Trigger], Union[ - Coroutine[Any, Any, Union[Response, None, dict, list, set, bytes]], - Union[Response, None, dict, list, set, bytes], + Coroutine[Any, Any, Union[Response, None, str, dict, list, set, bytes]], + Union[Response, None, str, dict, list, set, bytes], ], ] ): @@ -110,7 +110,7 @@ async def _register_faas_worker( channel.close() -def start(handler: Callable[[Trigger], Coroutine[Any, Any, Union[Response, None, dict, list, set, bytes]]]): +def start(handler: Callable[[Trigger], Coroutine[Any, Any, Union[Response, None, str, dict, list, set, bytes]]]): """ Register the provided function as the trigger handler and starts handling new trigger requests.