Consider using django-stubs
sobolevn opened this issue · comments
Nikita Sobolev commented
Hi! Thanks for this awesome guide!
I see that you use type annotations with querysets and django.
I suggest to give https://github.com/typeddjango/django-stubs a try.
It support real QuerySet and model annotations. So, you won't use -> Iterable[MyModel]
where QuerySet[MyModel]
should be used.
Radoslav Georgiev commented
That's a good idea. Will give it a try 👍
Radoslav Georgiev commented
This is going to be introduced to the example project: HackSoftware/Django-Styleguide-Example#89
Radoslav Georgiev commented
Updated the mypy
✌️