Skip to content

Commit

Permalink
Drop Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
SogoKato committed Sep 7, 2022
1 parent 3d887d2 commit 1290b19
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions fastapi/concurrency.py
@@ -1,4 +1,4 @@
import sys
from contextlib import asynccontextmanager as asynccontextmanager
from typing import AsyncGenerator, ContextManager, TypeVar

import anyio
Expand All @@ -9,14 +9,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

0 comments on commit 1290b19

Please sign in to comment.