From 9f0286aaa546d4ccf39b48ec9a38e8a3077ce1ff Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Tue, 29 Sep 2020 13:25:16 +0200 Subject: [PATCH] Add deprecation notices (#659) --- chess/pgn.py | 5 +++++ chess/svg.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/chess/pgn.py b/chess/pgn.py index cbdefdea2..0ecf02dbe 100644 --- a/chess/pgn.py +++ b/chess/pgn.py @@ -916,6 +916,11 @@ def parse_san(self, board: chess.Board, san: str) -> chess.Move: You can override the default implementation to work around specific quirks of your input format. + + .. deprecated:: 1.1 + This method is very limited, because it depends too strongly on the + rest of the parser. Instead, please report common quirks so that + workarounds can be added for everyone. """ return board.parse_san(san) diff --git a/chess/svg.py b/chess/svg.py index b82220ae1..dd1f0de63 100644 --- a/chess/svg.py +++ b/chess/svg.py @@ -265,6 +265,9 @@ def board(board: Optional[chess.BaseBoard] = None, *, .. image:: ../docs/Ne4.svg :alt: 8/8/8/8/4N3/8/8/8 + + .. deprecated:: 1.1 + Use *orientation* with a color instead of the *flipped* toggle. """ orientation ^= flipped margin = 15 if coordinates else 0