[3.12] Clarify state of CancelledError in doc (GH-106453) (#106454)

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-06 04:04:43 -07:00 committed by GitHub
parent 84cda268bd
commit e229225fba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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