Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions mlbstatsapi/models/stats/pitching.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ class SimplePitchingSplit:
The number of inherited runners scored by the pitcher.
inheritedrunners : int
The number of inherited runners for the pitcher.
age : int
The age of the pitcher.
caughtstealingpercentage : str
The caught stealing percentage for the pitcher.
"""
summary: Optional[str] = None
gamesplayed: Optional[int] = None
Expand Down Expand Up @@ -216,6 +220,8 @@ class SimplePitchingSplit:
balls: Optional[int] = None
outspitched: Optional[int] = None
rbi: Optional[int] = None
age: Optional[int] = None
caughtstealingpercentage: Optional[str] = None

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