Skip to content

Commit

Permalink
Slightly tweak wording of new exception docs
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Oct 15, 2022
1 parent 7690384 commit 38ab554
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions chess/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2985,8 +2985,8 @@ def parse_san(self, san: str) -> Move:
The returned move is guaranteed to be either legal or a null move.
:raises:
:exc:`ValueError` (or specifically an exception specified below) if the SAN is invalid, illegal or ambiguous.
- :exc:`InvalidMoveError` if the SAN is invalid.
:exc:`ValueError` (specifically an exception specified below) if the SAN is invalid, illegal or ambiguous.
- :exc:`InvalidMoveError` if the SAN is syntactically invalid.
- :exc:`IllegalMoveError` if the SAN is illegal.
- :exc:`AmbiguousMoveError` if the SAN is ambiguous.
"""
Expand Down Expand Up @@ -3070,8 +3070,8 @@ def push_san(self, san: str) -> Move:
Returns the move.
:raises:
:exc:`ValueError` (or specifically an exception specified below) if neither legal nor a null move.
- :exc:`InvalidMoveError` if the SAN is invalid.
:exc:`ValueError` (specifically an exception specified below) if neither legal nor a null move.
- :exc:`InvalidMoveError` if the SAN is syntactically invalid.
- :exc:`IllegalMoveError` if the SAN is illegal.
- :exc:`AmbiguousMoveError` if the SAN is ambiguous.
"""
Expand Down Expand Up @@ -3102,9 +3102,9 @@ def parse_uci(self, uci: str) -> Move:
The returned move is guaranteed to be either legal or a null move.
:raises:
:exc:`ValueError` (or specifically an exception specified below) if the move is invalid or illegal in the
:exc:`ValueError` (specifically an exception specified below) if the move is invalid or illegal in the
current position (but not a null move).
- :exc:`InvalidMoveError` if the UCI is invalid.
- :exc:`InvalidMoveError` if the UCI is syntactically invalid.
- :exc:`IllegalMoveError` if the UCI is illegal.
"""
move = Move.from_uci(uci)
Expand All @@ -3127,9 +3127,9 @@ def push_uci(self, uci: str) -> Move:
Returns the move.
:raises:
:exc:`ValueError` (or specifically an exception specified below) if the move is invalid or illegal in the
:exc:`ValueError` (specifically an exception specified below) if the move is invalid or illegal in the
current position (but not a null move).
- :exc:`InvalidMoveError` if the UCI is invalid.
- :exc:`InvalidMoveError` if the UCI is syntactically invalid.
- :exc:`IllegalMoveError` if the UCI is illegal.
"""
move = self.parse_uci(uci)
Expand Down

0 comments on commit 38ab554

Please sign in to comment.