2 ms·
Painful at first, but well worth it. You can ignore all existing code and only use it going forward. django-stubs is black magic and helps a lot. Here's an ex
by silviogutierrez 7y ago
Painful at first, but well worth it. You can ignore all existing code and only use it going forward.
django-stubs is black magic and helps a lot.
Here's an example setup that I use for my library:
https://github.com/silviogutierrez/reactivated/ https://github.com/silviogutierrez/reactivated/
the "sample" site is 100% type checked. Look at scripts/test.sh for running mypy in ci (and .github for the CI config)