Skip to content

[DRAFT] Type fixtures.sudo_testutils and remove it from mypy weaklist - #128736

Draft
cursor[bot] wants to merge 1 commit into
masterfrom
cursor/untyped-module-cleanup-b09d
Draft

cursor[bot] wants to merge 1 commit into
masterfrom
cursor/untyped-module-cleanup-b09d

Conversation

@cursor

@cursor cursor Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove fixtures.sudo_testutils from the not yet strongly typed mypy weaklist in pyproject.toml.
  • Add explicit type annotations to fixtures/sudo_testutils.py methods and params.
  • Align fixture types with Sentry's user/session expectations (sentry.users.models.user.User and self.client.session).

Testing

  • ./.venv/bin/mypy fixtures/sudo_testutils.py --config-file pyproject.toml
  • ./.venv/bin/python -uSm tools.mypy_helpers.check_stronglist pyproject.toml
  • ./.venv/bin/prek run -q --files fixtures/sudo_testutils.py pyproject.toml
  • SENTRY_SKIP_SERVICE_VALIDATION=1 ./.venv/bin/pytest -n3 -svv --reuse-db tests/sentry/test_mypy_stronglist.py (test body passes; teardown fails in this VM due Redis unavailable on localhost:6379)

@armenzg could you please review this draft PR?

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Open in Web View Automation 

Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant