Skip to content

Add mypy 1.19.x, django-stubs 5.2.9, djangorestframework-stubs 3.16.8 - #1887

Merged
JoshFerge merged 3 commits into
mainfrom
jferg/add-mypy-django-stubs-versions
Feb 5, 2026
Merged

Add mypy 1.19.x, django-stubs 5.2.9, djangorestframework-stubs 3.16.8#1887
JoshFerge merged 3 commits into
mainfrom
jferg/add-mypy-django-stubs-versions

Conversation

@JoshFerge

Copy link
Copy Markdown
Contributor

Summary

  • Add mypy 1.19.0, 1.19.1
  • Add django-stubs 5.2.9
  • Add django-stubs-ext 5.2.9
  • Add djangorestframework-stubs 3.16.8

These packages are needed to upgrade mypy and move off sentry-forked-django-stubs / sentry-forked-djangorestframework-stubs to upstream in the sentry repo.

Adding these packages to support upgrading mypy and moving off
sentry-forked-django-stubs to upstream django-stubs in the sentry repo.

Packages added:
- mypy 1.19.0, 1.19.1
- django-stubs 5.2.9
- django-stubs-ext 5.2.9
- djangorestframework-stubs 3.16.8
mypy 1.19.0+ requires librt>=0.6.2 (mypyc runtime library).
This is a binary package with compiled C extensions.
@JoshFerge
JoshFerge requested review from a team February 5, 2026 20:31
@JoshFerge
JoshFerge enabled auto-merge February 5, 2026 20:32
@JoshFerge
JoshFerge merged commit 6fbb6c6 into main Feb 5, 2026
14 checks passed
@JoshFerge
JoshFerge deleted the jferg/add-mypy-django-stubs-versions branch February 5, 2026 20:38
JoshFerge added a commit to getsentry/sentry that referenced this pull request Feb 12, 2026
…bs (#107710)

## Summary
- Upgrade mypy from 1.17.1 to 1.19.1
- Replace `sentry-forked-django-stubs` with upstream `django-stubs`
5.2.9
- Replace `sentry-forked-djangorestframework-stubs` with upstream
`djangorestframework-stubs` 3.16.8
- Add `strict_model_abstract_attrs = false` to `[tool.django-stubs]`
config — this replaces the fork's only active patch (disabling
`MetaclassAdjustments` that stripped
`objects`/`DoesNotExist`/`MultipleObjectsReturned` from model classes)

The forked packages had no other active patches, so we can now use
upstream directly.

Depends on getsentry/pypi#1887 (merged).

## Test plan
- [x] `uv lock` resolves successfully
- [x] `uv sync` installs correctly
- [x] mypy runs without plugin crashes
- [x] Pre-commit hooks pass
- [ ] CI passes

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants