We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439c13e commit 0346117Copy full SHA for 0346117
1 file changed
nitric/faas/faas.py
@@ -33,8 +33,8 @@ async def _register_faas_worker(
33
func: Callable[
34
[Trigger],
35
Union[
36
- Coroutine[Any, Any, Union[Response, None, dict, list, set, bytes]],
37
- 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],
38
],
39
]
40
):
@@ -110,7 +110,7 @@ async def _register_faas_worker(
110
channel.close()
111
112
113
-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]]]):
114
"""
115
Register the provided function as the trigger handler and starts handling new trigger requests.
116
0 commit comments