Skip to content

[multiprocessing] Add support of PipeConnection to the Listener and top-level connection functions #15848

@sergey-miryanov

Description

@sergey-miryanov

For the AF_PIPE address family, Listener._listener will be a PipeListener, and its accept() method returns a PipeConnection.

PipeConnection shares a base class with Connection but is a distinct class. As a result, the current type annotations don't work correctly:

  • Listener.accept should return Connection | PipeConnection
  • deliver_challenge, answer_challenge, and wait should accept Connection | PipeConnection

The same applies to Client as well:

  • Client should return Connection | PipeConnection

Tested on Windows 11, Python 3.15.0b1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions