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
This is due to a quirk of mypy's test framework. To speed up the tests and make debugging easier, what mypy's test framework will do is load up a very limited subset of Python's builtins, which, incidentally, doesn't lists.
To fix this, you can include one of the "builtins extension" files in test-data/unit/fixtures to augment the builtins by doing:
[case testListSimplest]
a = [1]
[builtins fixtures/list.py]
You can see examples of test cases doing this inside the check-list.text file. But yeah, it's not a perfect system and can be pretty confusing to debug the first time around -- for more context about this system/suggestions people have made, see #890 and #1675.
Adding the following test crashes:
Results
The text was updated successfully, but these errors were encountered: