Skip to content

Commit

Permalink
Add deprecation notice for PovWdl tuple like behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Oct 22, 2020
1 parent a07d343 commit bbf87db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chess/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,12 @@ class PovWdl:
"""
Relative :class:`win/draw/loss statistics <chess.engine.Wdl>` and the point
of view.
.. deprecated:: 1.2
Behaves like a tuple
``(wdl.relative.wins, wdl.relative.draws, wdl.relative.losses)``
for backwards compatibility. But it is recommended to use the provided
fields and methods instead.
"""

relative: Wdl
Expand Down

0 comments on commit bbf87db

Please sign in to comment.