Skip to content

Commit

Permalink
Merge pull request #213 from zero-sum-seattle/0.5.21_Dev
Browse files Browse the repository at this point in the history
0.5.21 dev
  • Loading branch information
KCNilssen authored Jun 13, 2024
2 parents 90129b3 + 2e907a2 commit d6768a9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mlbstatsapi/models/homerunderby/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ class Round:
A list of objects containing the data for the matchups in the round.
"""
round: int
numbatters: int
matchups: List[Union[Matchup, dict]]
numbatters: Optional[int] = None

def __post_init__(self):
self.matchups = [Matchup(**matchup) for matchup in self.matchups]
3 changes: 3 additions & 0 deletions mlbstatsapi/models/stats/hitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ class SimpleHittingSplit:
gamesplayed : int
The number of games played by the batter.
flyouts : int
The number flyouts hit by the batter
groundouts : int
The amount of groundouts hit by the batter.
airouts : int
Expand Down Expand Up @@ -212,6 +214,7 @@ class SimpleHittingSplit:
The number of bats per home run of the batter.
"""
gamesplayed: Optional[int] = None
flyouts: Optional[int] = None
groundouts: Optional[int] = None
airouts: Optional[int] = None
runs: Optional[int] = None
Expand Down
3 changes: 3 additions & 0 deletions mlbstatsapi/models/stats/pitching.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class SimplePitchingSplit:
The games played by the pitcher.
gamesstarted : int
The games started by the pitcher.
flyouts : int
The number of flyouts for the pitcher
groundouts : int
The number of groundouts for the pitcher.
airouts : int
Expand Down Expand Up @@ -149,6 +151,7 @@ class SimplePitchingSplit:
"""
gamesplayed: Optional[int] = None
gamesstarted: Optional[int] = None
flyouts: Optional[int] = None
groundouts: Optional[int] = None
airouts: Optional[int] = None
runs: Optional[int] = None
Expand Down
2 changes: 2 additions & 0 deletions mlbstatsapi/models/stats/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Split:
----------
season : str
numteams : int
numleagues : int
gametype : str
rank : int
position : Position
Expand All @@ -105,6 +106,7 @@ class Split:
"""
season: Optional[str] = None
numteams: Optional[int] = None
numleagues: Optional[int] = None
gametype: Optional[str] = None
rank: Optional[int] = None
position: Optional[Union[Position, dict]] = field(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "python-mlb-statsapi"
version = "0.5.20"
version = "0.5.21"

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

0 comments on commit d6768a9

Please sign in to comment.