Pyright hangs when analyzing scipy project
This is related to https://github.com/microsoft/pyright/issues/8272. I'm creating issues for each hang so I can track them separately.
This particular issue specifically affects the lobpcg function in module scipy/sparse/linalg/_eigen/lobpcg/lobpcg.py.
To repro:
- Clone the repro https://github.com/scipy/scipy
- Open the file
scipy/sparse/linalg/_eigen/lobpcg/lobpcg.pyin VS Code with pyright installed
There are also other modules that take a long time to analyze:
/scipy/scipy/optimize/_lsq/trf.py (20542ms) /scipy/doc/source/tutorial/examples/newton_krylov_preconditioning.py (6041ms) /scipy/scipy/sparse/tests/test_base.py (3504ms) /scipy/scipy/stats/tests/test_stats.py (3007ms) /scipy/scipy/signal/tests/test_filter_design.py (2897ms) /scipy/scipy/signal/tests/test_signaltools.py (2755ms) /scipy/scipy/linalg/tests/test_lapack.py (2657ms) /scipy/scipy/stats/tests/test_distributions.py (2640ms) /scipy/scipy/linalg/tests/test_basic.py (2529ms) /scipy/scipy/linalg/tests/test_decomp.py (2470ms) /scipy/scipy/sparse/linalg/_isolve/iterative.py (2425ms)