Skip to content

Releases: typeddjango/django-stubs

1.0.1

26 Jul 17:22
Compare
Choose a tag to compare
  • Remove psycopg2 dependency
  • Add support for values_list("foreign_key_id", flat=True) to produce a Collection[int]

New semanal + Django app registry rewrite

25 Jul 17:17
b4cd975
Compare
Choose a tag to compare

All previous config option are dropped, see
https://github.com/typeddjango/django-stubs#warning-all-configuration-from-pre-100-versions-is-dropped-use-one-below
for the new configuration of the plugin and some release details

v0.12.1

15 Apr 12:02
Compare
Choose a tag to compare

Proper release for 0.12.0 changes.

v0.12.0: make ignore_missing_model_attributes behaviour optional (#66)

13 Apr 11:00
5dd6ecc
Compare
Choose a tag to compare
  • Fix compatibility with mypy==0.700
  • Check if unknown attributes are invoked on model instances. Add ignore_missing_model_attributes flag to control this behaviour

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