Skip to content

Commit

Permalink
return type should be str
Browse files Browse the repository at this point in the history
  • Loading branch information
Anupya committed Oct 23, 2023
1 parent 4187949 commit e2910cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions berserk/clients/opening_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ def stream_player_games(
for response in self._r.get(path, params=params, stream=True):
yield cast(OpeningStatistic, response)

def get_otb_master_game(self, game_id: str):
def get_otb_master_game(self, game_id: str) -> str:
"""Get PGN representation of an over-the-board master game.
:param game_id: game ID
:return: PGN of the game
"""
path = f"/master/pgn/{game_id}"
return self._r.get(path)
return str(self._r.get(path))

0 comments on commit e2910cd

Please sign in to comment.