Skip to content

Commit

Permalink
Remove redundant type definition in strategies.py (#877)
Browse files Browse the repository at this point in the history
* Fix imports in strategies.py

* Use previously defined MOVE type

* Reduce need for import prefixes
  • Loading branch information
MarkZH authored Dec 1, 2023
1 parent ca09d94 commit 0864507
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
import chess
from chess.engine import PlayResult, Limit
import random
from engine_wrapper import MinimalEngine
from typing import Any, Union
from engine_wrapper import MinimalEngine, MOVE
from typing import Any
import logging
MOVE = Union[PlayResult, list[chess.Move]]


# Use this logger variable to print messages to the console or log files.
Expand Down

0 comments on commit 0864507

Please sign in to comment.