KEMBAR78
Use cache for OpExpr by ilevkivskyi · Pull Request #19523 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #14978

This is irrelevant for self-check (and for most code likely), but it is important for numerical code, where it avoids exponential slowdown in formulas involving arrays etc (see e.g. the original issue).

Unless there will be fallout in mypy_primer and/or there are objections, I am going to go ahead and merge it.

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi ilevkivskyi merged commit c53367f into python:master Jul 29, 2025
20 checks passed
@ilevkivskyi ilevkivskyi deleted the cache-op-expr branch July 29, 2025 01:12
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.

Mypy stuck with polynomial using NumPy

1 participant