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): 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. +###########################################################################