Skip to content

Commit

Permalink
Add deprecation notices (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Sep 29, 2020
1 parent 1d49c3f commit 9f0286a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chess/pgn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions chess/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f0286a

Please sign in to comment.