add typing to protocol_muxer

This commit is contained in:
Chih Cheng Liang
2019-08-07 18:02:30 +08:00
committed by Kevin Mai-Husan Chia
parent 0d709364f8
commit 5903012e0e
13 changed files with 72 additions and 43 deletions

View File

@ -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
"""