Skip to content

Commit a29e1f6

Browse files
committed
Update mypy
1 parent 8ec54ec commit a29e1f6

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

aiokafka/util.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@
33
import weakref
44
from asyncio import AbstractEventLoop
55
from types import MethodType
6-
from typing import Any, Awaitable, Coroutine, Dict, Tuple, TypeVar, Union, cast
6+
from typing import (
7+
Any,
8+
Awaitable,
9+
Coroutine,
10+
Dict,
11+
Optional,
12+
Tuple,
13+
TypeVar,
14+
Union,
15+
cast,
16+
)
717

818
import async_timeout
919
from packaging.version import Version
@@ -27,7 +37,7 @@ def create_task(coro: Coroutine[Any, Any, T]) -> "asyncio.Task[T]":
2737
return loop.create_task(coro)
2838

2939

30-
def create_future(loop: AbstractEventLoop = None) -> "asyncio.Future[T]":
40+
def create_future(loop: Optional[AbstractEventLoop] = None) -> "asyncio.Future[T]":
3141
if loop is None:
3242
loop = get_running_loop()
3343
return loop.create_future()

requirements-ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-r requirements-cython.txt
22
ruff==0.1.13
33
black==22.3.0
4-
mypy==0.961
4+
mypy==1.8.0
55
pytest==7.4.3
66
pytest-cov==4.1.0
77
pytest-asyncio==0.21.1

requirements-win-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-r requirements-cython.txt
22
ruff==0.1.13
33
black==22.3.0
4-
mypy==0.961
4+
mypy==1.8.0
55
pytest==7.4.3
66
pytest-cov==4.1.0
77
pytest-asyncio==0.21.1

0 commit comments

Comments
 (0)