Skip to content

gh-150345: Fix wrong reference in BaseSelectorEventLoop docstring#150408

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

gh-150345: Fix wrong reference in BaseSelectorEventLoop docstring#150408
kodsurfer wants to merge 2 commits into
python:mainfrom
kodsurfer:fix-baseselectoreventloop-docstring

Conversation

@kodsurfer
Copy link
Copy Markdown

@kodsurfer kodsurfer commented May 25, 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

Automerge-Triggered-By: GH:gvanrossum

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 25, 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.

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