Skip to content

gh-160239: Remove dead _repr_info() methods from asyncio.windows_events - #160241

Merged
kumaraditya303 merged 1 commit into
python:mainfrom
OsmnvAslan:fix-windows-repr-info
Oct 24, 2026
Merged

kumaraditya303 merged 1 commit into
python:mainfrom
OsmnvAslan:fix-windows-repr-info

Conversation

@OsmnvAslan

Copy link
Copy Markdown
Contributor

Removes the two dead _repr_info() overrides from _OverlappedFuture and _BaseWaitHandleFuture in asyncio.windows_events.

Future.__repr__() now uses base_futures._future_repr() (gh-42183), so these overrides are never called, and their super()._repr_info() call would raise AttributeError because Future no longer defines _repr_info().

Closes gh-160239.

Prepared with AI assistance, then reviewed and tested before submission.

…s_events

Future.__repr__() now uses base_futures._future_repr() instead of _repr_info(), so these overrides are dead and their super()._repr_info() call would raise AttributeError.
@picnixz

This comment has been minimized.

@kumaraditya303
kumaraditya303 merged commit 763fb33 into python:main Oct 24, 2026
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

asyncio.futures.Future has no method _repr_info()

3 participants