mirror of https://github.com/python/cpython.git
[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:
parent
3f244b2f6e
commit
ada22db147
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue