Skip to content

Releases: typeddjango/django-stubs

v0.11.1

01 Apr 17:06
Compare
Choose a tag to compare
  • Fix weird module 'mypy' has no attribute 'constraints' crash

v0.11.0

31 Mar 22:43
Compare
Choose a tag to compare
  • Fix SessionBase.exists() return type
  • Fix @classproperty
  • Improve typechecking of Model attributes of functions, thanks to @syastrov
class A(models.Model):
    pass
class B(models.Model):
    pass
def service(a: A) -> int:
    pass
service(B())   # now it fails

v0.10.0

25 Mar 10:32
Compare
Choose a tag to compare
  • Support for proper return types of values() and values_list, thanks to @syastrov.
  • Add all reimports for forms.__init__.pyi.
  • Make constructor annotations for django.core.validators classes less specific, thanks to @kalekseev.
  • Fix many false positives inside the stubs itself.

v0.9.0

10 Mar 17:23
Compare
Choose a tag to compare
  • Support returning the correct values for the different QuerySet methods when using .values() and .values_list(). Contributed by @syastrov
  • Fix type errors on other models' managers when using objects = models.Manager() in Model. Contributed by @syastrov
  • Add gzip_page decorator. Contributed by @mattbasta

v0.8.2

06 Mar 09:06
Compare
Choose a tag to compare
  • Fix importing of django.views package
  • blank=True doesn't make CharField nullable now, thanks to @Naddiseo

v0.8.1

05 Mar 17:22
Compare
Choose a tag to compare
  • Add linting
  • Fix annotations for MultiValueDict
  • Remove dependency on Django itself

v0.8.0

27 Feb 15:01
Compare
Choose a tag to compare
  • Plugin support for FormMixin's get_form() and get_form_class()
  • Proper annotations for QuerySet.in_bulk(), thanks to @syastrov

v0.7.0

21 Feb 21:45
Compare
Choose a tag to compare
  • transaction.atomic reworked, thanks to @syastrov
  • Add support for referring to models in the same file by name string in related fields

v0.6.0

17 Feb 22:46
Compare
Choose a tag to compare
  • Add strict_optional = True support

v0.5.0

14 Feb 00:38
Compare
Choose a tag to compare