Skip to content

Commit e1fe361

Browse files
committed
Use py3.8 compatible types.
1 parent 4d49695 commit e1fe361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functions_framework/aio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import inspect
1818
import os
1919

20-
from typing import Any, Awaitable, Callable, Union
20+
from typing import Any, Awaitable, Callable, Dict, Union
2121

2222
from cloudevents.http import from_http
2323
from cloudevents.http.event import CloudEvent
@@ -43,7 +43,7 @@
4343
HTTPResponse = Union[
4444
Response, # Functions can return a full Starlette Response object
4545
str, # Str returns are wrapped in Response(result)
46-
dict[Any, Any], # Dict returns are wrapped in JSONResponse(result)
46+
Dict[Any, Any], # Dict returns are wrapped in JSONResponse(result)
4747
tuple[Any, int], # Flask-style (content, status_code) supported
4848
None, # None raises HTTPException
4949
]

0 commit comments

Comments
 (0)