Skip to content

Parallel type checking when using mypy - #575

Open
sknigh wants to merge 1 commit into
boxed:mainfrom
sknigh:perf/type-check-workers
Open

sknigh wants to merge 1 commit into
boxed:mainfrom
sknigh:perf/type-check-workers

Conversation

@sknigh

@sknigh sknigh commented Sep 8, 2026

Copy link
Copy Markdown

Testing with --max-children 8 and python 2.x saw the type checking step run about 4x faster.


Mypy 2 supports parallel type checking by reading MYPY_NUM_WORKERS; older versions ignore it. This change sets workers to --max-children minus one; which leaves a slot open for mutmut to do work in parallel.

Mypy 2 supports parallel type checking by reading MYPY_NUM_WORKERS;
older versions ignore it. This change sets workers to --max-children
minus one, which leaves a slot open for mutmut to do work in parallel.
@sknigh sknigh changed the title Type check with one mypy worker fewer than --max-children Parallel type checking when using mypy Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant