Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion mlbstatsapi/models/stats/catching.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
class SimpleCatchingSplit:
"""
A class to represent a simple catching split

Age: int
age at beginning of season
gamesplayed : int
The number of games played by the catcher
runs : int
Expand Down Expand Up @@ -41,6 +42,8 @@ class SimpleCatchingSplit:
see also: https://www.mlb.com/glossary/standard-stats/on-base-plus-slugging
caughtstealing : int
The number of runners caught stealing by the catcher.
caughtstealingpercentage: str
percentage of runners caught stealing by the catcher.
stolenbases : int
The number of stolen bases while catching.
stolenbasepercentage : str
Expand Down Expand Up @@ -70,6 +73,7 @@ class SimpleCatchingSplit:
passedball : int
The number of passed balls while catching.
"""
age: Optional[int] = None
gamesplayed: Optional[int] = None
runs: Optional[int] = None
homeruns: Optional[int] = None
Expand All @@ -84,6 +88,7 @@ class SimpleCatchingSplit:
slg: Optional[str] = None
ops: Optional[str] = None
caughtstealing: Optional[int] = None
caughtstealingpercentage: Optional[str]=None
stolenbases: Optional[int] = None
stolenbasepercentage: Optional[str] = None
earnedruns: Optional[int] = None
Expand Down
7 changes: 6 additions & 1 deletion mlbstatsapi/models/stats/fielding.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@
class SimpleFieldingSplit:
"""
A class to represent a simple fielding split

age: int
player age at the start of the season
gamesplayed: int
The number of games played
gamesstarted: int
The number of games started
caughtstealing: int
The number of runners caught stealing
caughtstealingpercentage: str
The percentage of runners caught stealing
stolenbases: int
The number of stolen bases
stolenbasepercentage: str
Expand Down Expand Up @@ -60,10 +63,12 @@ class SimpleFieldingSplit:
pickoffs: int
The number of pick offs.
"""
age:Optional[int]=None
position: Optional[Union[Position, dict]] = field(default_factory=dict)
gamesplayed: Optional[int] = None
gamesstarted: Optional[int] = None
caughtstealing: Optional[int] = None
caughtstealingpercentage: Optional[str] = None
stolenbases: Optional[int] = None
stolenbasepercentage: Optional[str] = None
assists: Optional[int] = None
Expand Down
10 changes: 8 additions & 2 deletions mlbstatsapi/models/stats/hitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class AdvancedHittingSplit:

Attributes
----------
age: int
player age at the beginning of the season
plateappearances : int
The number of plate appearances.
totalbases : int
Expand Down Expand Up @@ -95,8 +97,9 @@ class AdvancedHittingSplit:
groundhits : int
The amount of ground hits the batter has hit.
linehits : int
The amount of line hits the the batter has hit.
The amount of line hits the batter has hit.
"""
age: Optional[int] = None
plateappearances: Optional[int] = None
totalbases: Optional[int] = None
leftonbase: Optional[int] = None
Expand Down Expand Up @@ -136,7 +139,8 @@ def __repr__(self) -> str:
class SimpleHittingSplit:
"""
A class to represent a simple hitting statistics

age: int
players age at the beginning of the season
gamesplayed : int
The number of games played by the batter.
flyouts : int
Expand Down Expand Up @@ -213,6 +217,7 @@ class SimpleHittingSplit:
atbatsperhomerun : int
The number of bats per home run of the batter.
"""
age: Optional[int] = None
gamesplayed: Optional[int] = None
flyouts: Optional[int] = None
groundouts: Optional[int] = None
Expand All @@ -232,6 +237,7 @@ class SimpleHittingSplit:
slg: Optional[str] = None
ops: Optional[str] = None
caughtstealing: Optional[int] = None
caughtstealingpercentage: Optional[str] = None
stolenbases: Optional[int] = None
stolenbasepercentage: Optional[int] = None
groundintodoubleplay: Optional[int] = None
Expand Down
9 changes: 9 additions & 0 deletions mlbstatsapi/models/stats/pitching.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ class SimplePitchingSplit:
The number of inherited runners for the pitcher.
"""
summary: Optional[str] = None
age: Optional[int] = None
gamesplayed: Optional[int] = None
gamesstarted: Optional[int] = None
flyouts: Optional[int] = None
Expand All @@ -172,6 +173,7 @@ class SimplePitchingSplit:
slg: Optional[str] = None
ops: Optional[str] = None
caughtstealing: Optional[int] = None
caughtstealingpercentage: Optional[str]=None
stolenbases: Optional[int] = None
stolenbasepercentage: Optional[str] = None
groundintodoubleplay: Optional[int] = None
Expand Down Expand Up @@ -327,6 +329,7 @@ class AdvancedPitchingSplit:
The number of bequeathed runners scored.
see also: https://www.mlb.com/glossary/advanced-stats/bequeathed-runners
"""
age: Optional[int] = None
winningpercentage: Optional[str] = None
runsscoredper9: Optional[str] = None
battersfaced: Optional[int] = None
Expand All @@ -352,6 +355,12 @@ class AdvancedPitchingSplit:
pickoffs: Optional[int] = None
totalswings: Optional[int] = None
swingandmisses: Optional[int] = None
strikeoutsminuswalkspercentage: Optional[str] = None
gidppercentage: Optional[str] = None
battersfacedpergame: Optional[str] = None
buntsfailed: Optional[int] = None
buntsmissedtipped: Optional[int] = None
whiffpercentage: Optional[int] = None
ballsinplay: Optional[int] = None
runsupport: Optional[int] = None
strikepercentage: Optional[str] = None
Expand Down