Skip to content

Commit d9cee54

Browse files
committed
Fix would_block() docs (#889)
1 parent b93b2da commit d9cee54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chess/engine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,7 +2574,7 @@ def stop(self) -> None:
25742574
self._stop = None
25752575

25762576
async def wait(self) -> BestMove:
2577-
"""Waits until the analysis is complete (or stopped)."""
2577+
"""Waits until the analysis is finished."""
25782578
return await self._finished
25792579

25802580
async def get(self) -> InfoDict:
@@ -2605,10 +2605,10 @@ def would_block(self) -> bool:
26052605
"""
26062606
Checks if calling :func:`~chess.engine.AnalysisResult.get()`,
26072607
calling :func:`~chess.engine.AnalysisResult.next()`,
2608-
calling :func:`~chess.engine.AnalysisResult.wait()`, or advancing the
2609-
iterator one step would require waiting for the engine.
2608+
or advancing the iterator one step would require waiting for the
2609+
engine.
26102610
2611-
All of these functions would return immediately if information is
2611+
These functions would return immediately if information is
26122612
pending (queue is not
26132613
:func:`empty <chess.engine.AnalysisResult.empty()>`) or if the search
26142614
is finished.

0 commit comments

Comments
 (0)