From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 5 Jul 2023 18:16:56 +0000 (-0700) Subject: [3.11] Clarify state of CancelledError in doc (GH-106453) (#106456) X-Git-Tag: v3.11.5~224 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ada22db1478f27af0ee40a5d67d220d05d4897c8;p=thirdparty%2FPython%2Fcpython.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 12a98138083589314d3da14bc97f2d8517947437) Co-authored-by: Kristján Valur Jónsson --- diff --git a/Doc/library/asyncio-exceptions.rst b/Doc/library/asyncio-exceptions.rst index 9250f01b8a08..7ad9103ca3fd 100644 --- a/Doc/library/asyncio-exceptions.rst +++ b/Doc/library/asyncio-exceptions.rst @@ -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