diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-02-19 13:15:53 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-02-19 13:15:53 +0100 |
| commit | f48b2234e9effe06d97ddac0cca525fa81cd872f (patch) | |
| tree | cf27883aa06202f4b63ee84e0cee531cda60557a | |
| parent | a6153aa85a200fb324cf8f2e8830d6c0f31fd616 (diff) | |
fix: Fix typing
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | main.py | 4 | ||||
| -rw-r--r-- | src/strategy.py | 9 |
3 files changed, 9 insertions, 5 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..3afa448 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +- https://www.microsoft.com/en-us/research/uploads/prod/2018/03/trueskill2.pdf @@ -167,8 +167,8 @@ games: list[Game] = [ Player.Thomas: 50, Player.Emma: 62, Player.Theo: 62, - } - ) + }, + ), ] for game in games: 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): |
