Skip to content

Commit 38ab554

Browse files
committed
Slightly tweak wording of new exception docs
1 parent 7690384 commit 38ab554

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

chess/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2985,8 +2985,8 @@ def parse_san(self, san: str) -> Move:
29852985
The returned move is guaranteed to be either legal or a null move.
29862986
29872987
:raises:
2988-
:exc:`ValueError` (or specifically an exception specified below) if the SAN is invalid, illegal or ambiguous.
2989-
- :exc:`InvalidMoveError` if the SAN is invalid.
2988+
:exc:`ValueError` (specifically an exception specified below) if the SAN is invalid, illegal or ambiguous.
2989+
- :exc:`InvalidMoveError` if the SAN is syntactically invalid.
29902990
- :exc:`IllegalMoveError` if the SAN is illegal.
29912991
- :exc:`AmbiguousMoveError` if the SAN is ambiguous.
29922992
"""
@@ -3070,8 +3070,8 @@ def push_san(self, san: str) -> Move:
30703070
Returns the move.
30713071
30723072
:raises:
3073-
:exc:`ValueError` (or specifically an exception specified below) if neither legal nor a null move.
3074-
- :exc:`InvalidMoveError` if the SAN is invalid.
3073+
:exc:`ValueError` (specifically an exception specified below) if neither legal nor a null move.
3074+
- :exc:`InvalidMoveError` if the SAN is syntactically invalid.
30753075
- :exc:`IllegalMoveError` if the SAN is illegal.
30763076
- :exc:`AmbiguousMoveError` if the SAN is ambiguous.
30773077
"""
@@ -3102,9 +3102,9 @@ def parse_uci(self, uci: str) -> Move:
31023102
The returned move is guaranteed to be either legal or a null move.
31033103
31043104
:raises:
3105-
:exc:`ValueError` (or specifically an exception specified below) if the move is invalid or illegal in the
3105+
:exc:`ValueError` (specifically an exception specified below) if the move is invalid or illegal in the
31063106
current position (but not a null move).
3107-
- :exc:`InvalidMoveError` if the UCI is invalid.
3107+
- :exc:`InvalidMoveError` if the UCI is syntactically invalid.
31083108
- :exc:`IllegalMoveError` if the UCI is illegal.
31093109
"""
31103110
move = Move.from_uci(uci)
@@ -3127,9 +3127,9 @@ def push_uci(self, uci: str) -> Move:
31273127
Returns the move.
31283128
31293129
:raises:
3130-
:exc:`ValueError` (or specifically an exception specified below) if the move is invalid or illegal in the
3130+
:exc:`ValueError` (specifically an exception specified below) if the move is invalid or illegal in the
31313131
current position (but not a null move).
3132-
- :exc:`InvalidMoveError` if the UCI is invalid.
3132+
- :exc:`InvalidMoveError` if the UCI is syntactically invalid.
31333133
- :exc:`IllegalMoveError` if the UCI is illegal.
31343134
"""
31353135
move = self.parse_uci(uci)

0 commit comments

Comments
 (0)