Skip to content

Commit

Permalink
Revert "fix mypy errors and work around python/mypy#11852"
Browse files Browse the repository at this point in the history
This reverts commit e17580a.
  • Loading branch information
asottile committed Jan 10, 2022
1 parent 4d1c791 commit be34f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions git_code_debt/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ def load_data(
itertools.repeat(metric_parsers),
itertools.repeat(exclude),
)
# https://github.com/python/mypy/issues/11852
with mapper(jobs) as do_map: # type: ignore
with mapper(jobs) as do_map:
for commit, metrics in zip(
commits, do_map(_get_metrics_inner, mp_args),
):
Expand Down
3 changes: 1 addition & 2 deletions tests/generate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ def square(x):

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

Expand Down

0 comments on commit be34f05

Please sign in to comment.