Skip to content

gh-150345: Fix incorrect reference in BaseSelectorEventLoop docstring#150538

Open
kodsurfer wants to merge 7 commits into
python:mainfrom
kodsurfer:fix-baseselectoreventloop-docstring
Open

gh-150345: Fix incorrect reference in BaseSelectorEventLoop docstring#150538
kodsurfer wants to merge 7 commits into
python:mainfrom
kodsurfer:fix-baseselectoreventloop-docstring

Conversation

@kodsurfer
Copy link
Copy Markdown

@kodsurfer kodsurfer commented May 27, 2026

Summary

Fix wrong class reference in BaseSelectorEventLoop docstring.

Details

The docstring in asyncio.selector_events.BaseSelectorEventLoop incorrectly
references events.EventLoop, which does not exist in the module.
events.AbstractEventLoop is the correct reference.

Changes

Changed docstring reference from events.EventLoop to events.AbstractEventLoop

Issue

This fixes the documentation issue where:

events.EventLoop doesn't exist as an attribute on asyncio.events
asyncio.EventLoop (added in Python 3.13) is a platform-specific concrete implementation alias, not an API specification
AbstractEventLoop is the appropriate class for API specification documentation

Issue: #150345

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 27, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@kodsurfer kodsurfer changed the title Fix baseselectoreventloop docstring gh-150345: Fix incorrect reference in BaseSelectorEventLoop docstring May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant