Skip to content

Commit fd6c7d2

Browse files
dependabot[bot]skshetry
andauthoredDec 7, 2023
build(deps-dev): bump mypy from 1.5.1 to 1.7.1 (#250)
* build(deps-dev): bump mypy from 1.5.1 to 1.7.1 Bumps [mypy](https://github.com/python/mypy) from 1.5.1 to 1.7.1. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v1.5.1...v1.7.1) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix typehints --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Saugat Pachhai (सौगात) <[email protected]>
1 parent a98ff0d commit fd6c7d2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tests = [
4040
"pytest-sugar",
4141
"pytest-cov>=4.1.0",
4242
"pytest-mock",
43-
"mypy==1.5.1",
43+
"mypy==1.7.1",
4444
"pytest-benchmark",
4545
"reflink",
4646
]

‎src/dvc_objects/executors.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from itertools import islice
66
from typing import (
77
Any,
8-
Awaitable,
98
Callable,
109
Coroutine,
1110
Dict,
@@ -117,7 +116,7 @@ async def batch_coros( # noqa: C901
117116
batch_size = len(coros)
118117
assert batch_size > 0
119118

120-
def create_taskset(n: int) -> Dict[Awaitable, int]:
119+
def create_taskset(n: int) -> Dict[asyncio.Task, int]:
121120
return {asyncio.create_task(coro): i for i, coro in islice(it, n)}
122121

123122
it: Iterator[Tuple[int, Coroutine]] = enumerate(coros)

0 commit comments

Comments
 (0)