Use async-exit-stack
over contextlib
For `AsyncExitStack`
This commit is contained in:
parent
ce5663705f
commit
6fe5871d96
@ -1,7 +1,6 @@
|
||||
from contextlib import AsyncExitStack
|
||||
from typing import Any, AsyncIterator, Dict, List, Sequence, Tuple, cast
|
||||
|
||||
# NOTE: import ``asynccontextmanager`` from ``contextlib`` when support for python 3.6 is dropped.
|
||||
from async_exit_stack import AsyncExitStack
|
||||
from async_generator import asynccontextmanager
|
||||
from async_service import background_trio_service
|
||||
import factory
|
||||
|
@ -1,6 +1,7 @@
|
||||
from contextlib import AsyncExitStack, asynccontextmanager
|
||||
from typing import AsyncIterator, Dict, Tuple
|
||||
|
||||
from async_exit_stack import AsyncExitStack
|
||||
from async_generator import asynccontextmanager
|
||||
from async_service import Service, background_trio_service
|
||||
|
||||
from libp2p.host.host_interface import IHost
|
||||
|
Loading…
x
Reference in New Issue
Block a user