Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(replay-vision): restore type: ignore on label accessor (#69532)

Kim Svatos Duganfc9ea12c7728
diff --git a/products/replay_vision/backend/prompt_suggestions.py b/products/replay_vision/backend/prompt_suggestions.py
index bd32d8d0c00d..e8964eb9d47b 100644
--- a/products/replay_vision/backend/prompt_suggestions.py
+++ b/products/replay_vision/backend/prompt_suggestions.py
@@ -107,7 +107,7 @@ def _describe_reasoning(observation: ReplayObservation) -> str:
def _label(observation: ReplayObservation) -> ReplayObservationLabel:
"""Typed accessor for the reverse one-to-one: guaranteed by the label__isnull=False filters here."""
- return observation.label
+ return observation.label # type: ignore[attr-defined] # reverse 1:1 mypy can't resolve on a full-repo run
def _example_line(observation: ReplayObservation) -> str: