From e2910cd9b22248de608c9353c680fe85520f7d1d Mon Sep 17 00:00:00 2001 From: Anupya Pamidimukkala Date: Sun, 22 Oct 2023 20:54:24 -0400 Subject: [PATCH] return type should be str --- berserk/clients/opening_explorer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/berserk/clients/opening_explorer.py b/berserk/clients/opening_explorer.py index 29cae77..2f63089 100644 --- a/berserk/clients/opening_explorer.py +++ b/berserk/clients/opening_explorer.py @@ -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))