Change argument name of Network.listen and blakc format

This commit is contained in:
NIC619
2019-08-01 13:25:20 +08:00
parent cd684aad9e
commit 924e965537
7 changed files with 23 additions and 35 deletions

View File

@ -58,9 +58,9 @@ class INetwork(ABC):
"""
@abstractmethod
async def listen(self, *args: Sequence[Multiaddr]) -> bool:
async def listen(self, multiaddrs: Sequence[Multiaddr]) -> bool:
"""
:param *args: one or many multiaddrs to start listening on
:param multiaddrs: one or many multiaddrs to start listening on
:return: True if at least one success
"""