Description
class MLBGame is missing season_type: str field.
API docs: https://mlb.balldontlie.io/#get-all-games
class MLBGame (BaseModel ):
id : int
home_team_name : str
away_team_name : str
home_team : MLBTeam
away_team : MLBTeam
season : int
postseason : bool
date : str
home_team_data : Optional [MLBGameTeamData ] = None
away_team_data : Optional [MLBGameTeamData ] = None
venue : Optional [str ] = None
attendance : Optional [float ] = None
status : Optional [str ] = None
conference_play : Optional [bool ] = None
period : Optional [float ] = None
clock : Optional [float ] = None
display_clock : Optional [str ] = None
scoring_summary : Optional [List [MLBGameScoringSummary ]] = None
MLBGameAPI.list() function should provide season_type: Optional[str] parameter.
def list (
self ,
cursor : Optional [int ] = None ,
per_page : Optional [int ] = 25 ,
dates : Optional [List [str ]] = None ,
team_ids : Optional [List [int ]] = None ,
seasons : Optional [List [int ]] = None ,
postseason : Optional [bool ] = None
Reactions are currently unavailable
You can’t perform that action at this time.
class MLBGameis missingseason_type: strfield.python/src/balldontlie/mlb/models.py
Lines 52 to 70 in 527274a
MLBGameAPI.list()function should provideseason_type: Optional[str]parameter.python/src/balldontlie/mlb/api.py
Lines 63 to 70 in 527274a