Add mypy 1.19.x, django-stubs 5.2.9, djangorestframework-stubs 3.16.8 - #1887
Merged
Conversation
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
enabled auto-merge
February 5, 2026 20:32
kcons
approved these changes
Feb 5, 2026
Merged
5 tasks
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
These packages are needed to upgrade mypy and move off
sentry-forked-django-stubs/sentry-forked-djangorestframework-stubsto upstream in the sentry repo.