Skip to content

fix(typing): Use subscript access for required event_id in delayed_processing#107792

Draft
JoshFerge wants to merge 1 commit intomasterfrom
jferg/fix-typing-delayed-processing
Draft

fix(typing): Use subscript access for required event_id in delayed_processing#107792
JoshFerge wants to merge 1 commit intomasterfrom
jferg/fix-typing-delayed-processing

Conversation

@JoshFerge
Copy link
Member

@JoshFerge JoshFerge commented Feb 6, 2026

Summary

  • Use instance_data["event_id"] subscript access instead of .get() since event_id is a required key in the EventData TypedDict
  • Remove the dead if event_id is None branch that could never be reached
  • Pre-work for mypy 1.19 upgrade

Ref: #107710

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 6, 2026
…ocessing

`event_id` is a required key in `EventData` TypedDict, so use
`instance_data["event_id"]` instead of `.get()`. Remove the dead
None-check branch since it can never be reached.

Ref: #107727
@JoshFerge JoshFerge force-pushed the jferg/fix-typing-delayed-processing branch from 6fde08e to e800221 Compare February 6, 2026 19:05
@JoshFerge JoshFerge changed the title fix(typing): Suppress unreachable warning in delayed_processing fix(typing): Use subscript access for required event_id in delayed_processing Feb 6, 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