Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b944395

Browse files
authored
Merge pull request #2198 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 445a2ef + bba6cf4 commit b944395

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ repos:
4444
hooks:
4545
- id: setup-cfg-fmt
4646
- repo: https://github.com/pre-commit/mirrors-mypy
47-
rev: v0.930
47+
rev: v0.931
4848
hooks:
4949
- id: mypy
5050
additional_dependencies: [types-all]

pre_commit/xargs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ def run_cmd_partition(
159159
)
160160

161161
threads = min(len(partitions), target_concurrency)
162-
# https://github.com/python/mypy/issues/11852
163-
with _thread_mapper(threads) as thread_map: # type: ignore
162+
with _thread_mapper(threads) as thread_map:
164163
results = thread_map(run_cmd_partition, partitions)
165164

166165
for proc_retcode, proc_out, _ in results:

tests/xargs_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,13 @@ def test_xargs_concurrency():
166166

167167

168168
def test_thread_mapper_concurrency_uses_threadpoolexecutor_map():
169-
# https://github.com/python/mypy/issues/11852
170-
with xargs._thread_mapper(10) as thread_map: # type: ignore
169+
with xargs._thread_mapper(10) as thread_map:
171170
_self = thread_map.__self__ # type: ignore
172171
assert isinstance(_self, concurrent.futures.ThreadPoolExecutor)
173172

174173

175174
def test_thread_mapper_concurrency_uses_regular_map():
176-
# https://github.com/python/mypy/issues/11852
177-
with xargs._thread_mapper(1) as thread_map: # type: ignore
175+
with xargs._thread_mapper(1) as thread_map:
178176
assert thread_map is map
179177

180178

0 commit comments

Comments
 (0)