From f48b2234e9effe06d97ddac0cca525fa81cd872f Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sun, 19 Feb 2023 13:15:53 +0100 Subject: fix: Fix typing --- src/strategy.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/strategy.py') diff --git a/src/strategy.py b/src/strategy.py index 6713299..01b69ad 100644 --- a/src/strategy.py +++ b/src/strategy.py @@ -1,7 +1,10 @@ -from typing import Protocol +from __future__ import annotations -from src.game import Game -from src.player import Player +from typing import TYPE_CHECKING, Protocol + +if TYPE_CHECKING: + from src.game import Game + from src.player import Player class GameEloChangeStrategy(Protocol): -- cgit v1.3