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
Mypy hangs indefinitely when trying to analyse a file with huge nested dicts.
To Reproduce
Copy and paste the contents of this file into a .py file: repro.txt
Run mypy on the file
Wait
Comments
This is similar to #14636. However, the dicts aren't nearly as deeply nested as in #14636, they're just very, very big.
The dicts are so huge because this is a partially generated file, the result of a codemod by stubdefaulter. Mypy is far from the only tool to have difficulty with this file: it also made black and flake8 hang, and crashed IDLE. Pyright did manage to analyse the file, but also took a lot longer than usual.
Your Environment
Mypy version used: 1.1.1; also master branch @ 2e75cba
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): none
Python version used: 3.11.2
The text was updated successfully, but these errors were encountered:
Bug Report
Mypy hangs indefinitely when trying to analyse a file with huge nested dicts.
To Reproduce
.py
file: repro.txtComments
This is similar to #14636. However, the dicts aren't nearly as deeply nested as in #14636, they're just very, very big.
The dicts are so huge because this is a partially generated file, the result of a codemod by stubdefaulter. Mypy is far from the only tool to have difficulty with this file: it also made black and flake8 hang, and crashed IDLE. Pyright did manage to analyse the file, but also took a lot longer than usual.
Your Environment
master
branch @ 2e75cbamypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: