Skip to content

Commit

Permalink
pyupgrade once to work around asottile/pyupgrade#750
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Nov 9, 2022
1 parent 842600e commit b3ffc0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r8/scoring.py
Expand Up @@ -39,7 +39,7 @@ class Scoreboard:
scores: collections.Counter[TTeamId]
solves: collections.defaultdict[TChallengeId, list[TTeamId]]

def __init__(self, timestamp: Optional[TUnixtime] = None):
def __init__(self, timestamp: TUnixtime | None = None):
self.timestamp = timestamp
self.scores = collections.Counter()
self.solves = collections.defaultdict(list)
Expand All @@ -49,7 +49,7 @@ def solve(
team: TTeamId,
challenge: r8.Challenge,
timestamp: TUnixtime
) -> Optional["Scoreboard"]:
) -> Optional[Scoreboard]:
if team.startswith("_"):
return None
if team in self.solves[challenge.id]:
Expand Down

0 comments on commit b3ffc0d

Please sign in to comment.