Skip to content

Commit 3dbb13d

Browse files
committed
fix union typing usage for 3.9 usage
1 parent 14483ac commit 3dbb13d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/aibs_informatics_aws_utils/lambda_.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def call_lambda_function_url(
5959
headers: Optional[dict] = None,
6060
auth: Optional[AuthBase] = None,
6161
**request_kwargs,
62-
) -> dict | str | None:
62+
) -> Union[dict, str, None]:
6363
if LambdaFunctionName.is_valid(function_name):
6464
function_url = get_lambda_function_url(LambdaFunctionName(function_name), region=region)
6565
if function_url is None:
@@ -106,3 +106,4 @@ def call_lambda_function_url(
106106
return response.text
107107
else:
108108
response.raise_for_status()
109+
return None

0 commit comments

Comments
 (0)