We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 176b4c5 commit ba688dbCopy full SHA for ba688db
1 file changed
tictactoe/__init__.py
@@ -165,7 +165,7 @@ def result(self) -> Optional[int]:
165
return 0
166
return None
167
168
- def _get_dimension_repr(self, board_partition):
+ def _get_dimension_repr(self, board_partition: npt.NDArray[np.int8]) -> str:
169
if len(board_partition.shape) > 1:
170
board_repr = ""
171
divider = ((board_partition.shape[0] * 4 - 1) * "-" + "\n") * (len(board_partition.shape) - 1)
@@ -182,7 +182,7 @@ def _get_dimension_repr(self, board_partition):
182
row = row[:-1]
183
return row
184
185
- def __repr__(self):
+ def __repr__(self) -> str:
186
return self._get_dimension_repr(self.board)
187
188
0 commit comments