Skip to content

Commit ba688db

Browse files
Add mypy typings for the new update
1 parent 176b4c5 commit ba688db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tictactoe/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def result(self) -> Optional[int]:
165165
return 0
166166
return None
167167

168-
def _get_dimension_repr(self, board_partition):
168+
def _get_dimension_repr(self, board_partition: npt.NDArray[np.int8]) -> str:
169169
if len(board_partition.shape) > 1:
170170
board_repr = ""
171171
divider = ((board_partition.shape[0] * 4 - 1) * "-" + "\n") * (len(board_partition.shape) - 1)
@@ -182,7 +182,7 @@ def _get_dimension_repr(self, board_partition):
182182
row = row[:-1]
183183
return row
184184

185-
def __repr__(self):
185+
def __repr__(self) -> str:
186186
return self._get_dimension_repr(self.board)
187187

188188

0 commit comments

Comments
 (0)