mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 22:50:54 +00:00
Run black and isort w/ the new config
This commit is contained in:
@ -30,7 +30,9 @@ class Multiselect(IMultiselectMuxer):
|
||||
"""
|
||||
self.handlers[protocol] = handler
|
||||
|
||||
async def negotiate(self, stream: NegotiableTransport) -> Tuple[TProtocol, StreamHandlerFn]:
|
||||
async def negotiate(
|
||||
self, stream: NegotiableTransport
|
||||
) -> Tuple[TProtocol, StreamHandlerFn]:
|
||||
"""
|
||||
Negotiate performs protocol selection
|
||||
:param stream: stream to negotiate on
|
||||
|
||||
@ -39,7 +39,9 @@ class MultiselectClient(IMultiselectClient):
|
||||
|
||||
# Handshake succeeded if this point is reached
|
||||
|
||||
async def select_protocol_or_fail(self, protocol: TProtocol, stream: IMuxedStream) -> TProtocol:
|
||||
async def select_protocol_or_fail(
|
||||
self, protocol: TProtocol, stream: IMuxedStream
|
||||
) -> TProtocol:
|
||||
"""
|
||||
Send message to multiselect selecting protocol
|
||||
and fail if multiselect does not return same protocol
|
||||
|
||||
@ -12,7 +12,9 @@ class IMultiselectClient(ABC):
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
async def select_protocol_or_fail(self, protocol: TProtocol, stream: IMuxedStream) -> TProtocol:
|
||||
async def select_protocol_or_fail(
|
||||
self, protocol: TProtocol, stream: IMuxedStream
|
||||
) -> TProtocol:
|
||||
"""
|
||||
Send message to multiselect selecting protocol
|
||||
and fail if multiselect does not return same protocol
|
||||
|
||||
@ -22,7 +22,9 @@ class IMultiselectMuxer(ABC):
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
async def negotiate(self, stream: NegotiableTransport) -> Tuple[TProtocol, StreamHandlerFn]:
|
||||
async def negotiate(
|
||||
self, stream: NegotiableTransport
|
||||
) -> Tuple[TProtocol, StreamHandlerFn]:
|
||||
"""
|
||||
Negotiate performs protocol selection
|
||||
:param stream: stream to negotiate on
|
||||
|
||||
Reference in New Issue
Block a user