Skip to content

fix(typing): Annotate pull request files tests for strict mypy - #129691

Merged
joshuarli merged 1 commit into
masterfrom
junior/fix-circuit-breaker-state-typing
Nov 3, 2026
Merged

joshuarli merged 1 commit into
masterfrom
junior/fix-circuit-breaker-state-typing

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

backend typing is red on master. It first failed on 56e837a (#129330), but that commit isn't the cause.

The cause is #129322, which added six unannotated test methods to test_organization_pull_request_files.py. It merged after strict mypy was turned on in #129614, so the two PRs raced and CI started reporting no-untyped-def on master.

This adds MagicMock / -> None annotations to those methods, the same way the rest of the file already does it. Only type hints change. Test behavior stays the same.

via @joshuarli.

--

View Session [Sentry]

#129322 added untyped test methods after strict mypy was enforced in
#129614, which broke the backend typing check on master.

Co-Authored-By: Joshua Li <[email protected]>
@joshuarli
joshuarli marked this pull request as ready for review November 3, 2026 15:43
@joshuarli
joshuarli requested a review from a team as a code owner November 3, 2026 15:43
@joshuarli
joshuarli enabled auto-merge (squash) November 3, 2026 15:43
@joshuarli
joshuarli merged commit f9d9af1 into master Nov 3, 2026
66 checks passed
@joshuarli
joshuarli deleted the junior/fix-circuit-breaker-state-typing branch November 3, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant