Skip to content

Commit

Permalink
Merge pull request #1164 from google-deepmind:lanctot_jan3_pytype_fix
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 595540512
Change-Id: I6af3fadd3b96886a78882fb094a339b1e5935a82
  • Loading branch information
lanctot committed Jan 4, 2024
2 parents 75b376f + 99917b4 commit d8a3bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions open_spiel/python/coalitional_games/basic_games.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Michael Wooldridge.
"""

from typing import Tuple
from typing import Dict, Tuple

import numpy as np

Expand Down Expand Up @@ -55,7 +55,7 @@ def coalition_value(self, coalition: np.ndarray) -> float:
class TabularGame(coalitional_game.CoalitionalGame):
"""A game represented by a table of values."""

def __init__(self, table: dict[Tuple[int, ...], float]):
def __init__(self, table: Dict[Tuple[int, ...], float]):
super().__init__(num_players=-1) # set num players to -1 for now
for key in table:
if self._num_players < 0:
Expand Down

0 comments on commit d8a3bab

Please sign in to comment.