Skip to content

[DRAFT] fix(typing): remove metrics_sessions_v2 from weaklist#116370

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

[DRAFT] fix(typing): remove metrics_sessions_v2 from weaklist#116370
cursor[bot] wants to merge 1 commit into
masterfrom
cursor/untyped-module-cleanup-6c02

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented May 28, 2026

Summary

  • remove sentry.release_health.metrics_sessions_v2 from the mypy disable_error_code module-ignore list
  • remove sentry.release_health.metrics_sessions_v2 from the mypy weaklist (disallow_untyped_defs = false override)
  • type DurationField.op as MetricOperationType to satisfy MetricField constructor typing

Validation

  • source .venv/bin/activate && python -m tools.mypy_helpers.mypy_without_ignores src/sentry/release_health/metrics_sessions_v2.py
  • source .venv/bin/activate && mypy --config pyproject.toml src/sentry/release_health/metrics_sessions_v2.py
  • source .venv/bin/activate && .venv/bin/prek run -q mypy --files src/sentry/release_health/metrics_sessions_v2.py pyproject.toml

@armenzg please review.

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 May 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