Skip to content

Commit

Permalink
Use NewType
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps committed Sep 1, 2023
1 parent 60fd96c commit 46f966c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/league_service/typedefs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from enum import Enum
from typing import Callable, Dict, List, NamedTuple, Optional, Tuple
from typing import Callable, Dict, List, NamedTuple, Optional, Tuple, NewType

from ..decorators import with_logger

Expand All @@ -22,8 +22,8 @@ class InvalidScoreError(LeagueServiceError):
pass


GameID = int
PlayerID = int
GameID = NewType("GameId", int)
PlayerID = NewType("PlayerID", int)
RatingType = str # e.g. "ladder_1v1"
Rating = Tuple[float, float]

Expand Down

0 comments on commit 46f966c

Please sign in to comment.