You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's exactly #14978. For every overload signature of a numpy function (such as ndarray.__add__ with whopping 17 overloads of which 9 are relevant), we accept all arguments. Nest 6 such arguments, and we check simple operations $9^6 \approx 500,000$ times. Nest 10, and we'll be checking that forever.
Bug Report
mypy hangs and appears to have entered an infinite loop on some function argument type hints.
To Reproduce
The following code hangs mypy version 1.15.0 on my machine:
The following code works as expected. Note that the only difference is the removal of the last
float
type hint.Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: