mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
add typing to protocol_muxer
This commit is contained in:
committed by
Kevin Mai-Husan Chia
parent
0d709364f8
commit
5903012e0e
@ -9,14 +9,14 @@ class IMultiselectCommunicator(ABC):
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def write(self, msg_str):
|
||||
async def write(self, msg_str: str) -> None:
|
||||
"""
|
||||
Write message to stream
|
||||
:param msg_str: message to write
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def read_stream_until_eof(self):
|
||||
async def read_stream_until_eof(self) -> str:
|
||||
"""
|
||||
Reads message from stream until EOF
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user