Skip to content

Draft: chore(typing): graduate sentry.signals from weaklist - #120735

Draft
cursor[bot] wants to merge 3 commits into
masterfrom
cursor/untyped-module-cleanup-6983
Draft

Draft: chore(typing): graduate sentry.signals from weaklist#120735
cursor[bot] wants to merge 3 commits into
masterfrom
cursor/untyped-module-cleanup-6983

Conversation

@cursor

@cursor cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove sentry.signals from the mypy weaklist in pyproject.toml.
  • Add explicit type annotations in src/sentry/signals.py to satisfy strict mypy checks (no-untyped-def and override signature correctness).
  • Keep sentry.snuba.metrics.query_builder on the typing-issues override list after validating it still has unresolved strict typing errors.

Testing

  • .venv/bin/mypy --show-error-codes --no-warn-unused-configs src/sentry/signals.py
  • .venv/bin/python -m tools.mypy_helpers.check_stronglist pyproject.toml
  • .venv/bin/pytest -n3 -svv --reuse-db tests/sentry/snuba/metrics/test_query_builder.py (69 passed)
  • .venv/bin/prek run -q

@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 

cursoragent and others added 3 commits July 28, 2026 12:05
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
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 Jul 28, 2026
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