Skip to content

Commit c3f99bc

Browse files
committed
Fix more incompatibility with python38
1 parent e1fe361 commit c3f99bc

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, Dict, Union
20+
from typing import Any, Awaitable, Callable, Dict, Tuple, Union
2121

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

0 commit comments

Comments
 (0)