Skip to content

Commit 6b1cfed

Browse files
committed
Fix chess.gaviota bytearray usage does not pass mypy 1.18
1 parent 760360b commit 6b1cfed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chess/gaviota.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ def _tb_probe(self, req: Request) -> int:
17161716
z = self.egtb_block_getsize_zipped(req.egkey, block)
17171717

17181718
self.egtb_block_park(req.egkey, block, stream)
1719-
buffer_zipped = stream.read(z)
1719+
buffer_zipped: bytearray | bytes = stream.read(z)
17201720

17211721
if buffer_zipped[0] == 0:
17221722
# If flag is zero, plain LZMA is following.

0 commit comments

Comments
 (0)