Skip to content

Commit

Permalink
TypedDict from typing_extensions for 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Dec 25, 2022
1 parent b597a89 commit f1cb0ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aiohttp_asgi/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from contextlib import contextmanager
from typing import (
Any, Awaitable, Callable, Coroutine, Dict, Generator, List, MutableMapping,
Optional, Set, Tuple, TypedDict, Union,
Optional, Set, Tuple, Union,
)

from aiohttp import ClientRequest, WSMessage, WSMsgType, hdrs
Expand All @@ -15,6 +15,12 @@
from yarl import URL


try:
from typing import TypedDict
except ImportError:
from typing_extensions import TypedDict


ASGIScopeType = MutableMapping[str, Any]
ASGIReceiveType = Callable[[], Awaitable[MutableMapping[str, Any]]]
ASGISendType = Callable[[MutableMapping[str, Any]], Any]
Expand Down

0 comments on commit f1cb0ff

Please sign in to comment.