Skip to content

Commit

Permalink
Merge pull request #39 from nitrictech/feature/str-response
Browse files Browse the repository at this point in the history
fix: support str type from faas handlers
  • Loading branch information
jyecusch authored Sep 1, 2021
2 parents 439c13e + 0346117 commit 72b8d91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nitric/faas/faas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
],
]
):
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 72b8d91

Please sign in to comment.