Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Aug 18, 2022
1 parent 8ed4d8a commit ab290a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 2 additions & 9 deletions fastapi/concurrency.py
@@ -1,4 +1,5 @@
import sys
from contextlib import AsyncExitStack as AsyncExitStack # noqa
from contextlib import asynccontextmanager as asynccontextmanager
from typing import AsyncGenerator, ContextManager, TypeVar

from starlette.concurrency import iterate_in_threadpool as iterate_in_threadpool # noqa
Expand All @@ -7,14 +8,6 @@
run_until_first_complete as run_until_first_complete,
)

if sys.version_info >= (3, 7):
from contextlib import AsyncExitStack as AsyncExitStack
from contextlib import asynccontextmanager as asynccontextmanager
else:
from contextlib2 import AsyncExitStack as AsyncExitStack # noqa
from contextlib2 import asynccontextmanager as asynccontextmanager # noqa


_T = TypeVar("_T")


Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -70,7 +70,6 @@ test = [
# types
"types-ujson ==4.2.1",
"types-orjson ==3.6.2",
"types-dataclasses ==0.6.5; python_version<'3.7'",
]
doc = [
"mkdocs >=1.1.2,<2.0.0",
Expand Down

0 comments on commit ab290a9

Please sign in to comment.