Skip to content

Commit 6fde08e

Browse files
committed
fix(typing): Suppress unreachable warning in delayed_processing
event_id is a required str key in EventData TypedDict, so .get() never returns None. The defensive None check is kept intentionally; suppress the unreachable warning for mypy 1.19+. Ref: #107727
1 parent abcaf47 commit 6fde08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/rules/processing/delayed_processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def build_group_to_groupevent(
301301
start_timestamp = instance_data.get("start_timestamp")
302302

303303
if event_id is None:
304-
logger.info(
304+
logger.info( # type: ignore[unreachable]
305305
"delayed_processing.missing_event_id",
306306
extra={"rule": rule_group[0], "project_id": project_id},
307307
)

0 commit comments

Comments
 (0)