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 14483ac commit 3dbb13dCopy full SHA for 3dbb13d
src/aibs_informatics_aws_utils/lambda_.py
@@ -59,7 +59,7 @@ def call_lambda_function_url(
59
headers: Optional[dict] = None,
60
auth: Optional[AuthBase] = None,
61
**request_kwargs,
62
-) -> dict | str | None:
+) -> Union[dict, str, None]:
63
if LambdaFunctionName.is_valid(function_name):
64
function_url = get_lambda_function_url(LambdaFunctionName(function_name), region=region)
65
if function_url is None:
@@ -106,3 +106,4 @@ def call_lambda_function_url(
106
return response.text
107
else:
108
response.raise_for_status()
109
+ return None
0 commit comments