5 ms·
To get the type checker to work with Django you need to install django-stubs[1]. It works great with mypy, but should also work well with pyright. [1]: https:/
by josebama 3y ago
To get the type checker to work with Django you need to install django-stubs[1]. It works great with mypy, but should also work well with pyright.
[1]: https://github.com/typeddjango/django-stubs https://github.com/typeddjango/django-stubs
- crucialfelix 3y agoThe types will work in pyrite, but there is no pyright support for plugins, so the Django magic doesn't get typed correctly. I'm considering switching to pyright, probably by rewriting code that uses this magic. Or running both in ci with different configurations.