]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify state of CancelledError in doc (#106453)
authorKristján Valur Jónsson <sweskman@gmail.com>
Wed, 5 Jul 2023 15:07:02 +0000 (15:07 +0000)
committerGitHub <noreply@github.com>
Wed, 5 Jul 2023 15:07:02 +0000 (08:07 -0700)
This change makes it explicit that asyncio.CancelledError is not a subclass of Exception.

Doc/library/asyncio-exceptions.rst

index 9250f01b8a0895312507865c94445f92f06b242f..7ad9103ca3fdfc8c9c5bd535006861f848bf749a 100644 (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