Skip to content

Commit 4b7482d

Browse files
fix type hints incompatible with python < 3.10 in aws_stack (#9765)
1 parent a65e7bb commit 4b7482d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

localstack/utils/aws/aws_stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33
import socket
44
from functools import lru_cache
5-
from typing import Dict, Optional, Union
5+
from typing import Dict, List, Optional, Union
66

77
import boto3
88

@@ -98,7 +98,7 @@ def get_s3_hostname():
9898

9999

100100
def fix_account_id_in_arns(
101-
response, replacement: str, colon_delimiter: str = ":", existing: str | list[str] = None
101+
response, replacement: str, colon_delimiter: str = ":", existing: Union[str, List[str]] = None
102102
):
103103
"""Fix the account ID in the ARNs returned in the given Flask response or string"""
104104
from moto.core import DEFAULT_ACCOUNT_ID

0 commit comments

Comments
 (0)