diff --git a/stockfish/models.py b/stockfish/models.py index e47ee62..6953856 100644 --- a/stockfish/models.py +++ b/stockfish/models.py @@ -999,6 +999,7 @@ def get_perft(self, depth: int) -> Tuple[int, dict[str, int]]: if not isinstance(depth, int) or depth < 1 or isinstance(depth, bool): raise TypeError("depth must be an integer higher than 0") + depth = depth self._go_perft(depth) move_possibilities: dict[str, int] = {}