-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[INTERNAL ERROR] IndexError: list index out of range #13903
Comments
i tried figuring this out but i'm not familiar enough with (Pdb) p callee.arg_types
[def (*P.args, **P.kwargs) -> Any, P.args`1, P.kwargs`1] during the normal definition ( (Pdb) p callee.arg_types
[def (x: Any) -> Any, Any] during the parameterized definition ( this is where i got stuck :/ |
@nnrepos Thanks for investigating! I'll take a look and see if I can provide any help. For what it's worth, here's a self contained and somewhat minimised repro:
|
Okay, actually here's a simpler one:
|
Fixes #13903 The fix is straightforward, the formal to actual map needs to be refreshed twice, after both using external _and_ internal type context.
Crash Report
An internal error, possibly caused by some interaction with pytest.
To Reproduce
Mypy playground doesn't have pytest installed, and it's not obvious to me how to reproduce without pytest.
Traceback
version: 0.990+dev.abc9d155ffbd9ea160eec0b57c450cdf7e53ce39:
version: 0.971:
Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: