Skip to content

Commit a76345f

Browse files
committed
Docs fixes
1 parent c3bbeee commit a76345f

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

src/galaxy/api/plugin.py

+18-13
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def remove_game(self, game_id: str) -> None:
270270
"""Notify the client to remove game from the list of owned games
271271
of the currently authenticated user.
272272
273-
:param game_id: game id of the game to remove from the list of owned games
273+
:param game_id: the id of the game to remove from the list of owned games
274274
275275
Example use case of remove_game:
276276
@@ -300,7 +300,7 @@ def update_game(self, game: Game) -> None:
300300
def unlock_achievement(self, game_id: str, achievement: Achievement) -> None:
301301
"""Notify the client to unlock an achievement for a specific game.
302302
303-
:param game_id: game_id of the game for which to unlock an achievement.
303+
:param game_id: the of the game for which to unlock an achievement.
304304
:param achievement: achievement to unlock.
305305
"""
306306
params = {
@@ -552,9 +552,11 @@ async def import_games_achievements(game_ids_, context_):
552552

553553
async def prepare_achievements_context(self, game_ids: List[str]) -> Any:
554554
"""Override this method to prepare context for get_unlocked_achievements.
555-
556555
This allows for optimizations like batch requests to platform API.
557556
Default implementation returns None.
557+
558+
:param game_ids: the ids of the games for which achievements are imported
559+
:return: context
558560
"""
559561
return None
560562

@@ -563,9 +565,9 @@ async def get_unlocked_achievements(self, game_id: str, context: Any) -> List[Ac
563565
for the game identified by the provided game_id.
564566
This method is called by import task initialized by GOG Galaxy Client.
565567
566-
:param game_id:
567-
:param context: Value return from :meth:`prepare_achievements_context`
568-
:return:
568+
:param game_id: the id of the game for which the achievements are returned
569+
:param context: the value returned from :meth:`prepare_achievements_context`
570+
:return: list of Achievement objects
569571
"""
570572
raise NotImplementedError()
571573

@@ -601,7 +603,7 @@ async def launch_game(self, game_id: str) -> None:
601603
identified by the provided game_id.
602604
This method is called by the GOG Galaxy Client.
603605
604-
:param str game_id: id of the game to launch
606+
:param str game_id: the id of the game to launch
605607
606608
Example of possible override of the method:
607609
@@ -619,7 +621,7 @@ async def install_game(self, game_id: str) -> None:
619621
identified by the provided game_id.
620622
This method is called by the GOG Galaxy Client.
621623
622-
:param str game_id: id of the game to install
624+
:param str game_id: the id of the game to install
623625
624626
Example of possible override of the method:
625627
@@ -637,7 +639,7 @@ async def uninstall_game(self, game_id: str) -> None:
637639
identified by the provided game_id.
638640
This method is called by the GOG Galaxy Client.
639641
640-
:param str game_id: id of the game to uninstall
642+
:param str game_id: the id of the game to uninstall
641643
642644
Example of possible override of the method:
643645
@@ -707,6 +709,9 @@ async def prepare_game_times_context(self, game_ids: List[str]) -> Any:
707709
"""Override this method to prepare context for get_game_time.
708710
This allows for optimizations like batch requests to platform API.
709711
Default implementation returns None.
712+
713+
:param game_ids: the ids of the games for which game time are imported
714+
:return: context
710715
"""
711716
return None
712717

@@ -715,13 +720,13 @@ async def get_game_time(self, game_id: str, context: Any) -> GameTime:
715720
identified by the provided game_id.
716721
This method is called by import task initialized by GOG Galaxy Client.
717722
718-
:param game_id:
719-
:param context: Value return from :meth:`prepare_game_times_context`
720-
:return:
723+
:param game_id: the id of the game for which the game time is returned
724+
:param context: the value returned from :meth:`prepare_game_times_context`
725+
:return: GameTime object
721726
"""
722727
raise NotImplementedError()
723728

724-
def game_times_import_complete(self):
729+
def game_times_import_complete(self) -> None:
725730
"""Override this method to handle operations after game times import is finished
726731
(like updating cache).
727732
"""

0 commit comments

Comments
 (0)