4 ms·
Wish Django Stubs dont need a Mypy plugin https://github.com/typeddjango/django-stubs https://github.com/typeddjango/django-stubs
by aitchnyu 5mo ago
Wish Django Stubs dont need a Mypy plugin
https://github.com/typeddjango/django-stubs https://github.com/typeddjango/django-stubs
- ducdetronquito 5mo agoI use django-types(1), which is far from perfect but does a good enough job for my usecases. I think that Django's magic isn't statically typecheckable, so I tend to avoid those features altogether. If it's not possible, you can still provide a custom stubs for your needs, or provide a custom abstraction that wraps the not-typechecked parts, or accept that some parts of your codebase are less safe to modify than others. Nothing perfect, but it works. (1) https://github.com/sbdchd/django-types https://github.com/sbdchd/django-types