Skip to content

Commit

Permalink
Clarify state of CancelledError in doc (pythonGH-106453)
Browse files Browse the repository at this point in the history
This change makes it explicit that asyncio.CancelledError is not a subclass of Exception.
(cherry picked from commit 12a9813)

Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com>
  • Loading branch information
kristjanvalur authored and miss-islington committed Jul 5, 2023
1 parent b72601e commit e6d90d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/asyncio-exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6d90d9

Please sign in to comment.