Skip to content

Commit

Permalink
fix union typing usage for 3.9 usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rpmcginty committed Mar 21, 2024
1 parent 14483ac commit 3dbb13d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aibs_informatics_aws_utils/lambda_.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def call_lambda_function_url(
headers: Optional[dict] = None,
auth: Optional[AuthBase] = None,
**request_kwargs,
) -> dict | str | None:
) -> Union[dict, str, None]:
if LambdaFunctionName.is_valid(function_name):
function_url = get_lambda_function_url(LambdaFunctionName(function_name), region=region)
if function_url is None:
Expand Down Expand Up @@ -106,3 +106,4 @@ def call_lambda_function_url(
return response.text
else:
response.raise_for_status()
return None

0 comments on commit 3dbb13d

Please sign in to comment.