Skip to content

Commit 9a15026

Browse files
committed
fix: correct return type from invoke
1 parent fc3a7bb commit 9a15026

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

supafunc/_async/functions_client.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def set_auth(self, token: str) -> None:
4646

4747
async def invoke(
4848
self, function_name: str, invoke_options: Optional[Dict] = None
49-
) -> Dict:
49+
) -> Union[Dict, bytes]:
5050
"""Invokes a function
5151
5252
Parameters
@@ -56,11 +56,6 @@ async def invoke(
5656
`headers`: object representing the headers to send with the request
5757
`body`: the body of the request
5858
`responseType`: how the response should be parsed. The default is `json`
59-
60-
Returns
61-
-------
62-
Dict
63-
Dictionary with data
6459
"""
6560
headers = self.headers
6661
if invoke_options is not None:

0 commit comments

Comments
 (0)