File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11repos :
22- repo : https://github.com/pre-commit/pre-commit-hooks
3- rev : v4.0.1
3+ rev : v4.1.0
44 hooks :
55 - id : trailing-whitespace
66 - id : end-of-file-fixer
4444 hooks :
4545 - id : setup-cfg-fmt
4646- repo : https://github.com/pre-commit/mirrors-mypy
47- rev : v0.920
47+ rev : v0.930
4848 hooks :
4949 - id : mypy
5050 additional_dependencies : [types-all]
Original file line number Diff line number Diff line change @@ -159,7 +159,8 @@ def run_cmd_partition(
159159 )
160160
161161 threads = min (len (partitions ), target_concurrency )
162- with _thread_mapper (threads ) as thread_map :
162+ # https://github.com/python/mypy/issues/11852
163+ with _thread_mapper (threads ) as thread_map : # type: ignore
163164 results = thread_map (run_cmd_partition , partitions )
164165
165166 for proc_retcode , proc_out , _ in results :
Original file line number Diff line number Diff line change @@ -166,13 +166,15 @@ def test_xargs_concurrency():
166166
167167
168168def test_thread_mapper_concurrency_uses_threadpoolexecutor_map ():
169- with xargs ._thread_mapper (10 ) as thread_map :
169+ # https://github.com/python/mypy/issues/11852
170+ with xargs ._thread_mapper (10 ) as thread_map : # type: ignore
170171 _self = thread_map .__self__ # type: ignore
171172 assert isinstance (_self , concurrent .futures .ThreadPoolExecutor )
172173
173174
174175def test_thread_mapper_concurrency_uses_regular_map ():
175- with xargs ._thread_mapper (1 ) as thread_map :
176+ # https://github.com/python/mypy/issues/11852
177+ with xargs ._thread_mapper (1 ) as thread_map : # type: ignore
176178 assert thread_map is map
177179
178180
You can’t perform that action at this time.
0 commit comments