Use async-exit-stack over contextlib

For `AsyncExitStack`
This commit is contained in:
mhchia
2019-12-24 14:44:28 +08:00
parent ce5663705f
commit 6fe5871d96
3 changed files with 4 additions and 3 deletions

View File

@ -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