Skip to content

mypy: remove errors query builder from typing override list#116548

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

mypy: remove errors query builder from typing override list#116548
cursor[bot] wants to merge 1 commit into
masterfrom
cursor/untyped-module-cleanup-e890

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented May 30, 2026

Summary

  • remove sentry.search.events.builder.errors from the mypy "typing issues" override list
  • tighten typing in errors.py so it passes mypy without module-level error-code suppression
  • keep runtime behavior unchanged while resolving previously suppressed attribute/arg typing gaps

Testing

  • source .venv/bin/activate && .venv/bin/mypy src/sentry/search/events/builder/errors.py
  • source .venv/bin/activate && .venv/bin/prek run -q --files src/sentry/search/events/builder/errors.py pyproject.toml

@armenzg could you 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 30, 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