Commit 6e0cff7
fix: correct get_training_readiness return type to list[dict[str, Any]]
The endpoint returns a list of snapshots, not a single dict. The wrong
annotation broke downstream tooling (pydantic-validated MCP servers etc.)
and caused get_morning_training_readiness to carry a dead isinstance guard.
Removes the now-unnecessary isinstance(data, list) branch in
get_morning_training_readiness.
Closes #361
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7069111 commit 6e0cff7
1 file changed
Lines changed: 15 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
1687 | | - | |
| 1687 | + | |
1688 | 1688 | | |
1689 | 1689 | | |
1690 | 1690 | | |
| |||
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
1738 | | - | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
1739 | 1728 | | |
1740 | | - | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
1741 | 1734 | | |
1742 | | - | |
1743 | | - | |
| 1735 | + | |
1744 | 1736 | | |
1745 | 1737 | | |
1746 | 1738 | | |
| |||
0 commit comments