Skip to content

Commit be34f05

Browse files
committed
Revert "fix mypy errors and work around python/mypy#11852"
This reverts commit e17580a.
1 parent 4d1c791 commit be34f05

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

git_code_debt/generate.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ def load_data(
155155
itertools.repeat(metric_parsers),
156156
itertools.repeat(exclude),
157157
)
158-
# https://github.com/python/mypy/issues/11852
159-
with mapper(jobs) as do_map: # type: ignore
158+
with mapper(jobs) as do_map:
160159
for commit, metrics in zip(
161160
commits, do_map(_get_metrics_inner, mp_args),
162161
):

tests/generate_test.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ def square(x):
6161

6262
@pytest.mark.parametrize('jobs', (1, 4))
6363
def test_mapper(jobs):
64-
# https://github.com/python/mypy/issues/11852
65-
with mapper(jobs) as do_map: # type: ignore
64+
with mapper(jobs) as do_map:
6665
ret = tuple(do_map(square, (3, 5, 9)))
6766
assert ret == (9, 25, 81)
6867

0 commit comments

Comments
 (0)