Commit 3bc2def
Add missing age and caughtstealingpercentage fields to SimplePitchingSplit
Fixes #232
The MLB API now includes 'age' and 'caughtstealingpercentage' fields in pitcher statistics responses.
These fields were missing from the SimplePitchingSplit dataclass, causing TypeError when trying to
initialize the object with API response data.
Changes:
- Added age: Optional[int] = None to SimplePitchingSplit
- Added caughtstealingpercentage: Optional[str] = None to SimplePitchingSplit
- Updated docstring to document the new age field
Tested with player ID 641793 which consistently reproduced the issue.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 267dc92 commit 3bc2def
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
| 221 | + | |
| 222 | + | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
| |||
0 commit comments