Commit 2fa65a9
committed
scripts(typing[mcp_swap]): cast claude project node return to fix CI mypy
CI runs ``uv run mypy .`` against the whole tree, picking up
``scripts/mcp_swap.py``. ``_claude_project_node`` returned a value
sourced from ``Any`` JSON, and the runtime isinstance guard didn't
propagate to the return site, tripping ``no-any-return``. Cast to the
documented narrowed shape — the existing guards already establish the
invariant.1 parent 0820805 commit 2fa65a9
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
290 | 294 | | |
291 | 295 | | |
292 | 296 | | |
| |||
0 commit comments