From 9e003fe974d409933b49ba3c4081d807c12b49a9 Mon Sep 17 00:00:00 2001 From: kodsurfer Date: Mon, 25 May 2026 18:02:19 +0300 Subject: [PATCH 1/2] Fix wrong reference in BaseSelectorEventLoop docstring --- Lib/asyncio/selector_events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py index 961dbfb4b96303e..770af6b648c40ce 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -53,7 +53,7 @@ def _test_selector_event(selector, fd, event): class BaseSelectorEventLoop(base_events.BaseEventLoop): """Selector event loop. - See events.EventLoop for API specification. + See events.AbstractEventLoop for API specification. """ def __init__(self, selector=None): From 221cc24318dd2764ce9c12de9f80b0118b2f3292 Mon Sep 17 00:00:00 2001 From: kodsurfer Date: Mon, 25 May 2026 18:50:05 +0300 Subject: [PATCH 2/2] Add news entry for BaseSelectorEventLoop docstring fix --- .../2026-05-25-18-49-05.gh-issue-150345.gGIuYp.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2026-05-25-18-49-05.gh-issue-150345.gGIuYp.rst diff --git a/Misc/NEWS.d/next/Documentation/2026-05-25-18-49-05.gh-issue-150345.gGIuYp.rst b/Misc/NEWS.d/next/Documentation/2026-05-25-18-49-05.gh-issue-150345.gGIuYp.rst new file mode 100644 index 000000000000000..24936453e96a135 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2026-05-25-18-49-05.gh-issue-150345.gGIuYp.rst @@ -0,0 +1,10 @@ +Fix wrong class reference in asyncio.selector_events.BaseSelectorEventLoop +docstring. Changed reference from non-existent events.EventLoop to +events.AbstractEventLoop, which correctly documents the API specification. +#.. section: Tests #.. section: Build #.. section: Windows #.. section: +macOS #.. section: IDLE #.. section: Tools/Demos #.. section: C API + +# Write your Misc/NEWS.d entry below. It should be a simple ReST paragraph. +# Don't start with "- Issue #: " or "- gh-issue-: " or that sort of +stuff. +###########################################################################