Skip to content

Chore(deps): bump django-stubs from 6.0.4 to 6.0.5#1799

Merged
JSv4 merged 3 commits into
mainfrom
dependabot/pip/django-stubs-6.0.5
May 28, 2026
Merged

Chore(deps): bump django-stubs from 6.0.4 to 6.0.5#1799
JSv4 merged 3 commits into
mainfrom
dependabot/pip/django-stubs-6.0.5

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Bumps django-stubs from 6.0.4 to 6.0.5.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [django-stubs](https://github.com/typeddjango/django-stubs) from 6.0.4 to 6.0.5.
- [Release notes](https://github.com/typeddjango/django-stubs/releases)
- [Commits](typeddjango/django-stubs@6.0.4...6.0.5)

---
updated-dependencies:
- dependency-name: django-stubs
  dependency-version: 6.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 25, 2026
@claude
Copy link
Copy Markdown

claude Bot commented May 25, 2026

Code Review: Bump django-stubs from 6.0.4 to 6.0.5

Type: Dependabot dependency update (patch bump)
Risk: Very low


Overview

This PR updates django-stubs from 6.0.4 → 6.0.5 in requirements/local.txt. This is a dev/type-checking-only dependency — it has no impact on production runtime behavior.

What Changed Upstream

The 6.0.5 release includes:

  • Fix AdminSite.register typing (#3387) — corrects a type signature that was previously incorrect
  • Fix InlineModelAdmin parent-object method signatures (#3308) — improves accuracy of admin type stubs
  • Internal tooling updates (ty, pytest-mypy-plugins, pre-commit hooks)

Assessment

  • Correctness: The single-line change in requirements/local.txt is correct and matches the upstream release.
  • Scope: Affects only the local/dev requirements — no production dependencies are touched.
  • Risk: Patch-level bump with only type stub fixes; no behavioral changes possible.
  • Typing improvements: The AdminSite.register and InlineModelAdmin stub fixes could surface new mypy errors if the codebase uses these admin APIs with previously-unchecked signatures, but that would indicate latent type issues being correctly caught — not a regression.
  • No test coverage needed: This is a type stub update with no runtime effect.

Recommendation

Safe to merge. Routine low-risk patch bump. The only thing worth validating before merging is that pre-commit run --all-files passes cleanly — if the improved stubs surface new type errors in admin code, those should be fixed first.

JSv4 added 2 commits May 26, 2026 21:43
- doc_tasks.py: annotate corpus_creator_ids as set[int] and use
  data['corpus__creator_id'] after explicit None-check so mypy
  no longer infers set[Any | None] (fixes the 'pk__in' Iterable
  type mismatch that django-stubs 6.0.5 now catches).
- .pre-commit-config.yaml: bump django-stubs 6.0.3 -> 6.0.5 and
  djangorestframework-stubs 3.16.9 -> 3.17.0 so the local hook
  uses the same stubs as the CI mypy invocation.
@JSv4 JSv4 merged commit ee13324 into main May 28, 2026
11 of 12 checks passed
@JSv4 JSv4 deleted the dependabot/pip/django-stubs-6.0.5 branch May 28, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant