[3.11] Clarify state of CancelledError in doc (GH-106453) (#106456)

Clarify state of CancelledError in doc (GH-106453)

This change makes it explicit that asyncio.CancelledError is not a subclass of Exception.
(cherry picked from commit 12a9813808)

Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-07-05 11:16:56 -07:00 committed by GitHub
parent 3f244b2f6e
commit ada22db147
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 .. 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 .. exception:: InvalidStateError