Skip to content

Commit ada22db

Browse files
[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 12a9813) Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com>
1 parent 3f244b2 commit ada22db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/asyncio-exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Exceptions
3131

3232
.. versionchanged:: 3.8
3333

34-
:exc:`CancelledError` is now a subclass of :class:`BaseException`.
34+
:exc:`CancelledError` is now a subclass of :class:`BaseException` rather than :class:`Exception`.
3535

3636

3737
.. exception:: InvalidStateError

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy