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