From: Kristján Valur Jónsson Date: Wed, 5 Jul 2023 15:07:02 +0000 (+0000) Subject: Clarify state of CancelledError in doc (#106453) X-Git-Tag: v3.13.0a1~1508 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12a98138083589314d3da14bc97f2d8517947437;p=thirdparty%2FPython%2Fcpython.git Clarify state of CancelledError in doc (#106453) This change makes it explicit that asyncio.CancelledError is not a subclass of Exception. --- 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