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
For the
AF_PIPEaddress family,Listener._listenerwill be aPipeListener, and itsaccept()method returns aPipeConnection.PipeConnectionshares a base class withConnectionbut is a distinct class. As a result, the current type annotations don't work correctly:Listener.acceptshould returnConnection | PipeConnectiondeliver_challenge,answer_challenge, andwaitshould acceptConnection | PipeConnectionThe same applies to
Clientas well:Clientshould returnConnection | PipeConnectionTested on Windows 11, Python 3.15.0b1