Commit 19dd901
committed
Bind run_state.get_prior result before chaining .content access
Mypy on CI flagged ``second_run_state.get_prior(...).content`` because
``get_prior`` returns Optional[AgentResponse]. The preceding ``is not
None`` assert doesn't narrow the next call's return type. Bind the
result first, assert non-None, then access .content.1 parent eede220 commit 19dd901
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
723 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
724 | 725 | | |
725 | 726 | | |
726 | 727 | | |
| |||
0 commit comments