diff options
author | Kristján Valur Jónsson <sweskman@gmail.com> | 2023-07-05 15:07:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 15:07:02 (GMT) |
commit | 12a98138083589314d3da14bc97f2d8517947437 (patch) | |
tree | 2e3d498b7de483598925409db17ae4e3a46e2d04 /Doc/library | |
parent | 9d1d4f9c73a71192b22ab52a2eb9278737f98ddb (diff) | |
download | cpython-12a98138083589314d3da14bc97f2d8517947437.zip cpython-12a98138083589314d3da14bc97f2d8517947437.tar.gz cpython-12a98138083589314d3da14bc97f2d8517947437.tar.bz2 |
Clarify state of CancelledError in doc (#106453)
This change makes it explicit that asyncio.CancelledError is not a subclass of Exception.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/asyncio-exceptions.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/asyncio-exceptions.rst b/Doc/library/asyncio-exceptions.rst index 9250f01..7ad9103 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 |