Skip to content

Commit

Permalink
[3.12] Clarify state of CancelledError in doc (GH-106453) (#106454)
Browse files Browse the repository at this point in the history
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 12a9813)

Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com>
  • Loading branch information
miss-islington and kristjanvalur committed Jul 6, 2023
1 parent 84cda26 commit e229225
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 e229225

Please sign in to comment.