refactor: enforce typed poll() returns in pipeline
loading diff…
PollTriggerMessagePayload and payload extends BaseModel (backwards!). This was the root cause of 195 wrong state class inheritance in mercury.Tuple[State, List[PayloadType]] returns — no more diff[key] dict pattern, no more .model_dump() callsdiff[key] = ... assignments (old pattern).model_dump() calls in trigger codePollTriggerMessagePayloadMercury-side migration: ComposioHQ/mercury#(see typed-polling-trigger-payloads PR)
check_code static analysis catches old dict patterncheck_code catches state classes extending wrong base🤖 Generated with Claude Code