Skip to content

Commit b4f77d5

Browse files
committed
Clarify BaseVisitor.parse_san() limitations (closes niklasf#662)
1 parent d85b7b8 commit b4f77d5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

chess/pgn.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -918,9 +918,10 @@ def parse_san(self, board: chess.Board, san: str) -> chess.Move:
918918
quirks of your input format.
919919
920920
.. deprecated:: 1.1
921-
This method is very limited, because it depends too strongly on the
922-
rest of the parser. Instead, please report common quirks so that
923-
workarounds can be added for everyone.
921+
This method is very limited, because it is only called on moves
922+
that the parser recognizes in the first place. Instead of adding
923+
workarounds here, please report common quirks so that
924+
they can be handled for everyone.
924925
"""
925926
return board.parse_san(san)
926927

0 commit comments

Comments
 (0)