Skip to content

Update dependency django-stubs to v4

Tine Wittler requested to merge renovate/django-stubs-4.x into master

This MR contains the following updates:

Package Type Update Change
django-stubs (changelog) dev-dependencies major ^1.1 -> ^4.2

Release Notes

typeddjango/django-stubs

v4.2.7

Compare Source

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

v4.2.6

Compare Source

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

v4.2.5

Compare Source

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

v4.2.4

Compare Source

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! 🎉

v4.2.3

Compare Source

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

v4.2.2

Compare Source

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

v4.2.1

Compare Source

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

v4.2.0

Compare Source

Headline changes

  • New version scheme: django-stubs will now use the same major.minor version number as Django. Our Django support policy remains the same: Older versions are still partially supported, and we will continue supporting them as long as it's not a maintenance burden.
  • Django 4.2: This release adds initial support for some new features in 4.2. There is still work to do, feel free to open issues or submit pull requests!
  • mypy 1.2.0: Recommended mypy version updated to 1.2.0
  • Compatibility: This is the last release to support Python version 3.7 and Django 4.0.
Django 4.2 additions
Other stubs additions
Stubs fixes
Mypy plugin fixes
Other improvements
Tests & CI
Dependencies
Deferred for next release

New Contributors

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

v1.16.0

Compare Source

What's Changed

This release updates recommended mypy version to 1.1.x.

Stubs fixes
Stubs additions
Housekeeping

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/1.15.0...1.16.0

v1.15.0

Compare Source

This release updates recommended mypy version to 1.0.x. No changes in Django version compatibility.

Some re-exports that were unintentional have been removed. If you get errors like error: Module "django.core.cache" has no attribute "ConnectionProxy" (for any import path), you probably need to change the module you are importing e.g. ConnectionProxy from. These re-exports were never intentional and are not stable across Django versions.

In addition to code contributions, I'd like to thank @​ngnpope, @​sobolevn, @​ljodal, @​christianbundy, @​mschoettle for helping out with reviews.

What's Changed

Fixes
Django 4.2 compatibility
Documentation
Housekeeping
Dependencies

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/1.14.0...1.15.0

v1.14.0

Compare Source

What's Changed

This release updates recommended mypy version to 0.991 and fixes a few regressions in the last release. No changes in Django version compatibility.

In addition to code contributions, I'd like to thank @​flaeppe, @​ngnpope and @​sobolevn who helped out with reviews.

Fixes for regressions from last version
Mypy plugin fixes
Enhancements
Housekeeping, dependencies

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/1.13.2...1.14.0

v1.13.2

Compare Source

What's Changed

Mypy plugin fixes
Strings/translations
GeoDjango
Decorators
Other type stubs changes
Housekeeping
CI
Dependency updates

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/1.13.1...1.13.2

v1.13.1

Compare Source

What's Changed

Fixes
Housekeeping
Continuous integration
Dependency updates

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/1.13.0...1.13.1

v1.13.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/django-stubs@1.12.0...1.13.0

v1.12.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/typeddjango/django-stubs/compare/v1.11.0...django-stubs@1.12.0

v1.11.0

Compare Source

  • mypy 0.950 support

v1.10.1

Compare Source

v1.10.0

Compare Source

v1.9.0

Compare Source

v1.8.0

Compare Source

v1.7.0

Compare Source

v1.6.0

Compare Source


Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Edited by Tine Wittler

Merge request reports