Skip to content

Commit

Permalink
Add return value annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkZH committed Sep 10, 2023
1 parent 2e6ff83 commit 3cb886c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chess/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ def _option(self, engine: UciProtocol, arg: str) -> None:
current_var = None
var = []

def parse_min_max_value(token: str, which: Literal["min", "max"]):
def parse_min_max_value(token: str, which: Literal["min", "max"]) -> Optional[int]:
try:
return int(token)
except ValueError:
Expand Down

0 comments on commit 3cb886c

Please sign in to comment.