Skip to content

Commit 12a9813

Browse files
Clarify state of CancelledError in doc (#106453)
This change makes it explicit that asyncio.CancelledError is not a subclass of Exception.
1 parent 9d1d4f9 commit 12a9813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/asyncio-exceptions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Exceptions
3131

3232
.. versionchanged:: 3.8
3333

34-
:exc:`CancelledError` is now a subclass of :class:`BaseException`.
34+
:exc:`CancelledError` is now a subclass of :class:`BaseException` rather than :class:`Exception`.
3535

3636

3737
.. exception:: InvalidStateError

0 commit comments

Comments
 (0)