added none type to return value of negotiate and changed caller handles to handle none. Added newsfragment.

This commit is contained in:
unniznd
2025-08-12 21:50:10 +05:30
parent b01596ad92
commit b838a0e3b6
5 changed files with 17 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class Multiselect(IMultiselectMuxer):
self,
communicator: IMultiselectCommunicator,
negotiate_timeout: int = DEFAULT_NEGOTIATE_TIMEOUT,
) -> tuple[TProtocol, StreamHandlerFn | None]:
) -> tuple[TProtocol | None, StreamHandlerFn | None]:
"""
Negotiate performs protocol selection.