Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/asyncio/timeouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async def __aexit__(
raise TimeoutError from exc_val
elif exc_val is not None:
self._insert_timeout_error(exc_val)
if isinstance(exc_val, ExceptionGroup):
if isinstance(exc_val, BaseExceptionGroup):
for exc in exc_val.exceptions:
self._insert_timeout_error(exc)
elif self._state is _State.ENTERED:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Modify ``__aexit__`` method of ``asyncio.Timeout`` class to handle the superclass of ExceptionGroup object.
Patch by gunyu1019.
Loading