https://github.com/localstack/localstack/blob/e7efc768a20e75feafe3702a5a6e477a233feff2/localstack/utils/aws/aws_stack.py#L904

```
File "/usr/local/lib/python3.8/site-packages/localstack/services/generic_proxy.py", line 50, in <module>
from localstack.utils.aws import aws_stack
File "/usr/local/lib/python3.8/site-packages/localstack/utils/aws/aws_stack.py", line 904, in <module>
) -> dict[str, str]:
TypeError: 'type' object is not subscriptable
```

Please fix to `Dict[str, str]`
global LOCAL_REGION
    if LOCAL_REGION is None:
        session = boto3.session.Session()
        LOCAL_REGION = session.region_name or ""
    return config.DEFAULT_REGION or LOCAL_REGION
def is_internal_call_context(headers):
    """Return whether we are executing in the context of an internal API call, i.e.,
    the case where one API uses a boto3 client to call another API internally."""
    return HEADER_LOCALSTACK_ACCOUNT_ID in headers.keys()
def get_internal_credential():
    return "Credential=%s/" % get_aws_account_id()
def set_internal_auth(headers):
    authorization = headers.get("Authorization") or ""
    if authorization.startswith("AWS "):
        
        authorization = re.sub(
            r"AWS [^/]+",
            "AWS %s" % get_internal_credential(),
            authorization,
        )
    else:
        authorization = re.sub(
            r"Credential=[^/]+/",
            get_internal_credential(),
            authorization,
        )
    headers["Authorization"] = authorization
    headers[HEADER_LOCALSTACK_ACCOUNT_ID] = get_aws_account_id()
    return headers
def get_local_service_url(service_name_or_port: Union[str, int]) -> str: