Skip to content

Commit 32940e6

Browse files
committed
Update mypy
1 parent fad572c commit 32940e6

File tree

4 files changed

+32
-29
lines changed

4 files changed

+32
-29
lines changed

poetry.lock

Lines changed: 28 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ black = [
5454
{version = "21.7b0", python = ">=3.6.2"}
5555
]
5656
flake8 = "^3.9"
57-
mypy = "0.812"
57+
mypy = "0.910"
5858
codecov = "^2"
5959
sphinx = "^3.5"
6060
sphinx_rtd_theme = ">=0.5,<1"

src/graphql/subscription/map_async_iterator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from asyncio import CancelledError, Event, Future, ensure_future, wait
1+
from asyncio import CancelledError, Event, Task, ensure_future, wait
22
from concurrent.futures import FIRST_COMPLETED
33
from inspect import isasyncgen, isawaitable
44
from typing import cast, Any, AsyncIterable, Callable, Optional, Set, Type, Union
@@ -46,7 +46,7 @@ async def __anext__(self) -> Any:
4646
anext = ensure_future(self.iterator.__anext__())
4747

4848
try:
49-
pending: Set[Future] = (
49+
pending: Set[Task] = (
5050
await wait([aclose, anext], return_when=FIRST_COMPLETED)
5151
)[1]
5252
except CancelledError:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ commands =
1717
[testenv:mypy]
1818
basepython = python3.9
1919
deps =
20-
mypy==0.812
20+
mypy==0.910
2121
pytest>=6.2,<7
2222
commands =
2323
mypy src tests

0 commit comments

Comments
 (0)