From 0864507675e001213f6a34c4d89ab24cc203e084 Mon Sep 17 00:00:00 2001 From: Mark Harrison Date: Fri, 1 Dec 2023 11:42:36 -0800 Subject: [PATCH] Remove redundant type definition in strategies.py (#877) * Fix imports in strategies.py * Use previously defined MOVE type * Reduce need for import prefixes --- strategies.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/strategies.py b/strategies.py index 4f567c98f..4476c7131 100644 --- a/strategies.py +++ b/strategies.py @@ -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.