Skip to content

Commit

Permalink
Make also mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Oct 1, 2023
1 parent 86f5f55 commit 1dd3e1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chess/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def board(board: Optional[chess.BaseBoard] = None, *,
})

# Render selected squares.
if squares is not None and square in squares:
if square in squares:
ET.SubElement(svg, "use", _attrs({
"href": "#xx",
"xlink:href": "#xx",
Expand Down
4 changes: 2 additions & 2 deletions chess/syzygy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ def init_table_dtz(self) -> None:
p_data = 5

if not self.has_pawns:
self.map_idx = [[0, 0, 0, 0]]
self.map_idx: List[List[int]] = [[0, 0, 0, 0]]

self.setup_pieces_piece_dtz(p_data, 0)
p_data += self.num + 1
Expand Down Expand Up @@ -1307,7 +1307,7 @@ def init_table_dtz(self) -> None:
p_data = self._next
self.flags.append(self._flags)

self.map_idx: List[List[int]] = []
self.map_idx = []
self.p_map = p_data
for f in range(files):
self.map_idx.append([])
Expand Down

0 comments on commit 1dd3e1e

Please sign in to comment.