What's Changed
- Fix some
<type> is not present at runtime
errors by @UnknownPlatypus in #2635 - Fix missing at runtime errors (second batch) by @UnknownPlatypus in #2636
- Move method defined on
BaseManager
toManager
to follow runtime behavior by @UnknownPlatypus in #2637 - Fix missing at runtime errors (batch 3) by @UnknownPlatypus in #2639
- Add stubs for
django.template.autoreload
by @rafailmdzdv in #2638 - Allow permission methods to take any model instance as obj by @federicobond in #2640
- correct bound for
_UserType
by @asottile in #2645 - fix referencing
.value
of a Choices variable by @asottile in #2644 - Fixes to choices support in plugin by @ngnpope in #2646
- Use github permalink to blob view, not blame view by @UnknownPlatypus in #2647
- add
null
keyword argument toManyToManyField
init by @lev-blit in #2648 - Run stubtest on 2 latest python versions by @sobolevn in #2651
- Stronger type for
settings.AUTH_PASSWORD_VALIDATORS
by @UnknownPlatypus in #2652 - Fix missing at runtime 3 by @UnknownPlatypus in #2653
- Enable a few more ruff rules by @UnknownPlatypus in #2655
- Update django gis backend by @UnknownPlatypus in #2657
- Fix
django.http
errors by @UnknownPlatypus in #2654 - Add
mysqlclient
deps to reveal mysql module stubtest errors by @UnknownPlatypus in #2656 - Update
django.core.handlers
by @UnknownPlatypus in #2660 - Fix a few errors related to the metaclass
MediaDefiningClass
by @UnknownPlatypus in #2662 - Update django to 5.2.1 by @sobolevn in #2664
- Add a test for missing generics in stubs by @UnknownPlatypus in #2659
- Contribute to class by @UnknownPlatypus in #2666
- Restore support for mypy v1.13 by @ngnpope in #2669
- Fix a crash on mypy master branch by @ngnpope in #2670
- Update _AsSqlType to allow tuple[str, tuple] by @jacobtylerwalls in #2673
- fix typing for get_auto_imports, get_namespace, and run_formatters by @BlaackWizard in #2674
- fix: django.contrib.staticfiles for 5.2 by @skv0zsneg in #2684
- Fix postgres OrderableAggMixin & BTreeIndex by @skv0zsneg in #2686
- Switch to pyproject.toml + PEP621 by @UnknownPlatypus in #2688
- Fix some django52 by @skv0zsneg in #2691
- Use
uv
to manage dev dependencies by @UnknownPlatypus in #2698 - Add tests for ClassVar-annotated Migration fields by @zyv in #2702
- Add support for mypy v1.16 by @ngnpope in #2703
- Weaken response argument types in django.utils.cache by @cjwatson in #2704
- Add stub for
django.db.models.expressions.Expression.identity
by @cjwatson in #2685 - change
assertFormError
form arg type to BaseForm by @marxide in #2705 - Updated the "LogEntryManager" class' "log_action" and "log_actions" methods by @ataylor32 in #2708
- Fix signature of
LogEntryManager.log_actions
by @youtux in #2710 - Add "django.contrib.auth.management.commands.createsuperuser" annotations by @brianhelba in #2701
New Contributors
- @rafailmdzdv made their first contribution in #2638
- @lev-blit made their first contribution in #2648
- @BlaackWizard made their first contribution in #2674
- @skv0zsneg made their first contribution in #2684
- @cjwatson made their first contribution in #2704
- @marxide made their first contribution in #2705
- @ataylor32 made their first contribution in #2708
Full Changelog: 5.2.0...5.2.1