1616from mlbstatsapi .models .seasons import Season
1717from mlbstatsapi .models .drafts import Round
1818from mlbstatsapi .models .awards import Award
19- from mlbstatsapi .models .gamepace import Gamepace
20- from mlbstatsapi .models .homerunderby import Homerunderby
19+ from mlbstatsapi .models .gamepace import GamePace
20+ from mlbstatsapi .models .homerunderby import HomeRunDerby
2121from mlbstatsapi .models .standings import Standings
2222
2323from .mlb_dataadapter import MlbDataAdapter
@@ -1099,7 +1099,7 @@ def get_game_ids(self, date: str = None,
10991099
11001100 return game_ids
11011101
1102- def get_gamepace (self , season : str , sport_id = 1 , ** params ) -> Union [Gamepace , None ]:
1102+ def get_gamepace (self , season : str , sport_id = 1 , ** params ) -> Union [GamePace , None ]:
11031103 """
11041104 Get pace of game metrics for specific sport, league or team.
11051105
@@ -1164,7 +1164,7 @@ def get_gamepace(self, season: str, sport_id=1, **params) -> Union[Gamepace, Non
11641164 or 'leagues' in mlb_data .data and mlb_data .data ['leagues' ]
11651165 or 'sports' in mlb_data .data and mlb_data .data ['sports' ]):
11661166
1167- return Gamepace (** mlb_data .data )
1167+ return GamePace (** mlb_data .data )
11681168
11691169 def get_venue (self , venue_id : int , ** params ) -> Union [Venue , None ]:
11701170 """
@@ -2016,7 +2016,7 @@ def get_awards(self, award_id: str, **params) -> List[Award]:
20162016
20172017 return awards_list
20182018
2019- def get_homerun_derby (self , game_id , ** params ) -> Union [Homerunderby , None ]:
2019+ def get_homerun_derby (self , game_id , ** params ) -> Union [HomeRunDerby , None ]:
20202020 """
20212021 The homerun derby endpoint on the Stats API allows for users to
20222022 request information from the MLB database pertaining to the
@@ -2036,7 +2036,7 @@ def get_homerun_derby(self, game_id, **params) -> Union[Homerunderby, None]:
20362036
20372037 Returns
20382038 -------
2039- Homerunderby object
2039+ HomeRunDerby object
20402040
20412041 See Also
20422042 --------
@@ -2049,7 +2049,7 @@ def get_homerun_derby(self, game_id, **params) -> Union[Homerunderby, None]:
20492049 None
20502050
20512051 if 'status' in mlb_data .data and mlb_data .data ['status' ]:
2052- return Homerunderby (** mlb_data .data )
2052+ return HomeRunDerby (** mlb_data .data )
20532053
20542054
20552055 def get_team_stats (self , team_id : int , stats : list , groups : list , ** params ) -> dict :
0 commit comments