Skip to content

asyncio.futures.Future has no method _repr_info() #160239

Closed

Description

@blinkingmatt

Bug report

class _OverlappedFuture(futures.Future):
    """Subclass of Future which represents an overlapped operation.

    Cancelling it will immediately cancel the overlapped operation.
    """

    def __init__(self, ov, *, loop=None):
        super().__init__(loop=loop)
        if self._source_traceback:
            del self._source_traceback[-1]
        self._ov = ov

    def _repr_info(self):
        info = super()._repr_info()
        if self._ov is not None:
            state = 'pending' if self._ov.pending else 'completed'
            info.insert(1, f'overlapped=<{state}, {self._ov.address:#x}>')
        return info

asyncio.windows_events._OverlappedFuture has a method _repr_info() which calls the method _repr_info() in asyncio.futures.Future which does not exist.
I called that method by mistake. Probably no one is using it.
I checked in the active GIT repository to experience that the problem still persists.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Linked PRs

Activity

  1. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Oct 22, 2026
  2. added
    type-refactorCode refactoring (with no changes in behavior)
    and removed
    type-bugAn unexpected behavior, bug, or error
    on Oct 22, 2026
  3. picnixz commented on Oct 22, 2026

    @picnixz
    Member

    @blinkingmatt Are you interested in creating your own PR for this issue? I would prioretize yours if necessary.

  4. blinkingmatt commented on Oct 23, 2026

    @blinkingmatt
    Author
  5. added a commit that references this issue on Oct 24, 2026
  6. moved this from Todo to Done in asyncioon Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-asynciotype-refactorCode refactoring (with no changes in behavior)

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions