mirror of https://github.com/python/cpython
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:
parent
9d1d4f9c73
commit
12a9813808
|
@ -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