Skip to content

Commit adadc75

Browse files
authored
Merge pull request #233 from coreylane/fix/add-age-field-to-pitching-stats
Fix SimplePitchingSplit error: Add missing age and caughtstealingpercentage fields
2 parents 4584e8f + 8c070d7 commit adadc75

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

mlbstatsapi/models/stats/pitching.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ class SimplePitchingSplit:
150150
The number of inherited runners scored by the pitcher.
151151
inheritedrunners : int
152152
The number of inherited runners for the pitcher.
153+
age : int
154+
The age of the pitcher.
155+
caughtstealingpercentage : str
156+
The caught stealing percentage for the pitcher.
153157
"""
154158
summary: Optional[str] = None
155159
age: Optional[int] = None
@@ -218,6 +222,8 @@ class SimplePitchingSplit:
218222
balls: Optional[int] = None
219223
outspitched: Optional[int] = None
220224
rbi: Optional[int] = None
225+
age: Optional[int] = None
226+
caughtstealingpercentage: Optional[str] = None
221227

222228
def __repr__(self) -> str:
223229
kws = [f'{key}={value}' for key, value in self.__dict__.items() if value is not None and value]

0 commit comments

Comments
 (0)