Hacker News new | ask | show | jobs
by thr1owaway9621 3 days ago
I use pyright with a 50k LOC Django REST API codebase. I haven't really had problems. From my pyproject.toml:

django==4.2.30

djangorestframework==3.16.1

---

django-types==0.15.0

djangorestframework-types==0.8.0

pyright==1.1.390

My dj version is pretty old, but I'd assume things have only gotten better since v 4?

1 comments

The django mypy plugin can inspect django models types, project settings and much more context.