Comment by natdempk
9 hours ago
Anyone here know what the ideal/best setup is for typechecking + LSPing Django these days?
I've been leaning on pyright + django-stubs, but wondering if I'm missing something better with fewer gaps and pain points.
9 hours ago
Anyone here know what the ideal/best setup is for typechecking + LSPing Django these days?
I've been leaning on pyright + django-stubs, but wondering if I'm missing something better with fewer gaps and pain points.
(Pyrefly dev here)
We've seen a lot of people have success with the mypy plugin + django-stubs.
Full out-of-the-box support is being actively worked on in Pyrefly: we will have specialized django enum support in the next release and we expect real experimental support by the end of the year. At that time we'll likely post a blog post to announce it [here](https://pyrefly.org/blog/).
Just started trying ty with django-types. I got the models typed in a day or so. Still wading through the other 200+ errors in my codebase. But it's fast at least.