Django Stubs Versions Save

PEP-484 stubs for Django

5.0.2

1 week ago

What's Changed

This is a re-release of django-stubs 5.0.1 with a minor fix:

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.1...5.0.2

Release notes for version 5.0.1

Headline changes

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.0...5.0.1

5.0.1

1 week ago

Headline changes

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/5.0.0...5.0.1

5.0.0

1 month ago

Announcements

  • QuerySet class no longer derives from Collection. If you run into errors like incompatible type "_QuerySet[User, User]"; expected "Collection[User]", please read this announcement.

Headline changes

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/4.2.7...5.0.0

4.2.7

6 months ago

Headline changes

  • mypy 1.7: Recommended mypy version updated to 1.7.x
  • Improved type inference for ManyToManyField and Model.<manytomany>.through
  • If you previously imported RelatedManager or ManyRelatedManager, update those to django-stubs-ext: from django_stubs_ext.db.models.manager import ManyRelatedManager, RelatedManager
  • It's now allowed to override Django's @cached_property properties with class variables or @property properties.
  • Even though Django 5.0 was released yesterday, this version does not yet include any changes specific to Django 5.0.

Plugin improvements

django-stubs-ext

Stubs fixes

Stubs improvements

Stubs improvements: @cached_property

Housekeeping

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/4.2.6...4.2.7

4.2.6

7 months ago

Headline changes

  • Fixed several bugs in version 4.2.5. Thanks to everyone for contributing fixes on a short order!

  • Removed direct mypy dependency. If you are using mypy, please add an explicit mypy dev dependency to your project, or install django-stubs with the extra django-stubs[compatible-mypy].

    Mypy remains the only supported type checker. Improvements for other type checkers may be considered in the future, pull requests welcome. See #1628 for details.

Plugin fixes

Stubs fixes

Stubs improvements

Housekeeping

Full Changelog: https://github.com/typeddjango/django-stubs/compare/4.2.5...4.2.6

4.2.5

7 months ago

Headline changes

  • mypy 1.6: Recommended mypy version updated to 1.6.x

  • Next django-stubs version (4.2.6) will remove direct mypy dependency. If you are using mypy, please add an explicit mypy dev dependency to your project, or install django-stubs with the extra django-stubs[compatible-mypy].

    Mypy remains the only supported type checker. Improvements for other type checkers may be considered in the future, pull requests welcome. See #1628 for details.

  • Officially added Python 3.12 support

Stubs fixes

Stubs improvements

Plugin improvements

Plugin crash fixes

Documentation

Housekeeping

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/4.2.4...4.2.5

4.2.4

9 months ago

Most important changes:

  • This version add Mypy 1.5.* support and update [compatible-mypy] extra to use 1.5.*.
  • We also update our stubs to be compatible with Django 4.2.5 (and all prior versions of 4.2).
  • django_stubs_ext/ folder was renamed to be just ext/, it should not affect users (unless you install it from git)
  • We no longer assume the objects attribute to be present on generic Model classes. As per the django documentation, code working with generic models should use the _default_manager attribute instead.

This time there is no corresponding release of django-stubs-ext.

Plugin changes

Thanks a lot to all contributors and maintainers! 🎉

4.2.3

11 months ago

This version fixes two regressions in previons django-stubs release and also a few other fixes and improvements. Special thanks to @GabDug for contributing regression fixes on a short order.

This time there is no corresponding release of django-stubs-ext.

Stubs fixes

Plugin fixes

Stubs changes

CI/Testing

Housekeeping

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/4.2.2...4.2.3

4.2.2

11 months ago

Headline changes

  • mypy 1.4: Recommended mypy version updated to 1.4.x

  • Support for django-split-settings, django-configurations and other Django settings addons with strict_settings = false option, see README for details

  • We have now adopted mypy's stubtest to automatically find discrepancies between Django and django-stubs.

    If you want to contribute to django-stubs but are not sure where to start, have a look at stubtest's TODO list file, which lists the many issues discovered by stubtest.

Django 4.2 changes

Stubs additions

Stubs fixes

Plugin changes

django-stubs-ext

CI/testing

Housekeeping

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/4.2.1...4.2.2

4.2.1

1 year ago

Headline changes

Django 4.2 additions

Other stubs additions

Stubs fixes

Other fixes

Housekeeping

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/4.2.0...4.2.1