Skip to content

Commit

Permalink
Fix new mypy error (#856)
Browse files Browse the repository at this point in the history
Detected by mypy version 1.6.0. (#855)
  • Loading branch information
AttackingOrDefending authored Oct 15, 2023
1 parent 44cc978 commit 4d0c69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def game_clock_time(board: chess.Board,

def check_for_draw_offer(game: model.Game) -> bool:
"""Check if the bot was offered a draw."""
return game.state.get(f"{game.opponent_color[0]}draw", False)
return bool(game.state.get(f"{game.opponent_color[0]}draw"))


def get_book_move(board: chess.Board, game: model.Game,
Expand Down

0 comments on commit 4d0c69d

Please sign in to comment.