Clarify state of CancelledError in doc (#106453)

This change makes it explicit that asyncio.CancelledError is not a subclass of Exception.
This commit is contained in:
Kristján Valur Jónsson 2023-07-05 15:07:02 +00:00 committed by GitHub
parent 9d1d4f9c73
commit 12a9813808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ Exceptions
.. versionchanged:: 3.8
:exc:`CancelledError` is now a subclass of :class:`BaseException`.
:exc:`CancelledError` is now a subclass of :class:`BaseException` rather than :class:`Exception`.
.. exception:: InvalidStateError