Hacker News new | ask | show | jobs
by scienceplease 795 days ago
In the interim, check out basedpyright [1]. It's an up-to-date fork of pyright with some improvements, less arbitrary limitations, and does not require npm to install.

[1] https://github.com/detachhead/basedpyright

2 comments

I was thrilled to learn about basedpyright recently. It does a great job of filling in some of the missing parts of pyright that MS deemed a better fit for pylance – which is a vs code exclusive.

Easy to install with pipx.

As with pyright, I’ve noticed `--createstubs` helps against slowness when working in modules that import large untyped packages.

Do you have experience with it in production? Is it a drop-in replacement with respect to existing pyright configuration?