Hacker News new | ask | show | jobs
by josebama 850 days 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

1 comments

The 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.