Skip to content

[DRAFT] typing: remove fixtures.integrations.stub_service from weaklist - #123100

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

[DRAFT] typing: remove fixtures.integrations.stub_service from weaklist#123100
cursor[bot] wants to merge 1 commit into
masterfrom
cursor/untyped-module-cleanup-b0c5

Conversation

@cursor

@cursor cursor Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove fixtures.integrations.stub_service from the mypy weaklist in pyproject.toml
  • add explicit type annotations to StubService methods so it passes strict mypy checks
  • keep stub cache behavior stable while correctly handling falsy cached values

Testing

  • SENTRY_CONF=self-hosted SENTRY_REDIS_HOST=127.0.0.1 SENTRY_SECRET_KEY=abcdefghijklmnopqrstuvwxyz123456 PYTHONPATH=src .venv/bin/mypy fixtures/integrations/stub_service.py
  • PATH="$HOME/.local/bin:$PATH" .venv/bin/prek run -q --files fixtures/integrations/stub_service.py pyproject.toml
  • PYTHONPATH=src .venv/bin/python -c "from fixtures.integrations.stub_service import StubService; data=StubService.get_stub_data('jira','user.json'); assert isinstance(data, dict); print('loaded_keys', sorted(data.keys())[:3]);"

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.

@armenzg could you please review this draft PR?

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 Aug 29, 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