HackSoftware / Django-Styleguide

Django styleguide used in HackSoft projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider using django-stubs

sobolevn opened this issue · comments

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.

That's a good idea. Will give it a try 👍

This is going to be introduced to the example project: HackSoftware/Django-Styleguide-Example#89

Updated the mypy ✌️