Skip to content

Conversation

jorenham
Copy link
Member

@jorenham jorenham commented Sep 12, 2025

https://mypy.readthedocs.io/en/stable/changelog.html#mypy-1-18

This requires enabling the new --ignore-disjoint-bases flag (python/mypy#19740). We'll enable it once PEP 800 is accepted, and it of course also requires pyright to support @disjoint_base.

Copy link

mypy_primer results

No ecosystem changes detected ✅

@jorenham
Copy link
Member Author

jorenham commented Sep 12, 2025

A quick benchmark shows that the speedup is 0.667x for mypy (no cache) and 0.76x for stubtests (so that's significantly faster). The primer run also took 4 minutes instead of the usual 6+ minutes to run.

Mypy seems to have overtaken (based)pyright, as it now runs roughly 2s (~15%) faster on the scipy-stubs codebase.

@jorenham jorenham merged commit 7c18175 into master Sep 12, 2025
22 checks passed
@jorenham jorenham deleted the mypy-1.18.1 branch September 12, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant