Skip to content

Commit

Permalink
Move typing_extensions into correct context
Browse files Browse the repository at this point in the history
  • Loading branch information
laundmo authored and frederikaalund committed Nov 9, 2021
1 parent f69a684 commit 5d8a0f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion asyncio_mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
AsyncContextManager,
TypeVar,
)
from typing_extensions import ParamSpec



try:
from contextlib import asynccontextmanager
except ImportError:
from async_generator import asynccontextmanager as _asynccontextmanager # type: ignore
from typing_extensions import ParamSpec
_P = ParamSpec('_P')
_T = TypeVar('_T')
def asynccontextmanager(func: Callable[_P, AsyncIterator[_T]]) -> Callable[_P, AsyncContextManager[_T]]: # type: ignore
Expand Down

0 comments on commit 5d8a0f1

Please sign in to comment.