Skip to content

Commit d6768a9

Browse files
authored
Merge pull request #213 from zero-sum-seattle/0.5.21_Dev
0.5.21 dev
2 parents 90129b3 + 2e907a2 commit d6768a9

5 files changed

Lines changed: 10 additions & 2 deletions

File tree

mlbstatsapi/models/homerunderby/attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ class Round:
322322
A list of objects containing the data for the matchups in the round.
323323
"""
324324
round: int
325-
numbatters: int
326325
matchups: List[Union[Matchup, dict]]
326+
numbatters: Optional[int] = None
327327

328328
def __post_init__(self):
329329
self.matchups = [Matchup(**matchup) for matchup in self.matchups]

mlbstatsapi/models/stats/hitting.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ class SimpleHittingSplit:
139139
140140
gamesplayed : int
141141
The number of games played by the batter.
142+
flyouts : int
143+
The number flyouts hit by the batter
142144
groundouts : int
143145
The amount of groundouts hit by the batter.
144146
airouts : int
@@ -212,6 +214,7 @@ class SimpleHittingSplit:
212214
The number of bats per home run of the batter.
213215
"""
214216
gamesplayed: Optional[int] = None
217+
flyouts: Optional[int] = None
215218
groundouts: Optional[int] = None
216219
airouts: Optional[int] = None
217220
runs: Optional[int] = None

mlbstatsapi/models/stats/pitching.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class SimplePitchingSplit:
2828
The games played by the pitcher.
2929
gamesstarted : int
3030
The games started by the pitcher.
31+
flyouts : int
32+
The number of flyouts for the pitcher
3133
groundouts : int
3234
The number of groundouts for the pitcher.
3335
airouts : int
@@ -149,6 +151,7 @@ class SimplePitchingSplit:
149151
"""
150152
gamesplayed: Optional[int] = None
151153
gamesstarted: Optional[int] = None
154+
flyouts: Optional[int] = None
152155
groundouts: Optional[int] = None
153156
airouts: Optional[int] = None
154157
runs: Optional[int] = None

mlbstatsapi/models/stats/stats.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class Split:
9595
----------
9696
season : str
9797
numteams : int
98+
numleagues : int
9899
gametype : str
99100
rank : int
100101
position : Position
@@ -105,6 +106,7 @@ class Split:
105106
"""
106107
season: Optional[str] = None
107108
numteams: Optional[int] = None
109+
numleagues: Optional[int] = None
108110
gametype: Optional[str] = None
109111
rank: Optional[int] = None
110112
position: Optional[Union[Position, dict]] = field(default_factory=dict)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "python-mlb-statsapi"
7-
version = "0.5.20"
7+
version = "0.5.21"
88

99
authors = [
1010
{ name="Matthew Spah", email="spahmatthew@gmail.com" },

0 commit comments

Comments
 (0)