Fix missing asterisk
This commit is contained in:
parent
0173b5e0d9
commit
3a4b592a5a
@ -58,7 +58,7 @@ class INetwork(ABC):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
async def listen(self, multiaddrs: Sequence[Multiaddr]) -> bool:
|
async def listen(self, *multiaddrs: Sequence[Multiaddr]) -> bool:
|
||||||
"""
|
"""
|
||||||
:param multiaddrs: 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
|
:return: True if at least one success
|
||||||
|
@ -163,7 +163,7 @@ class Swarm(INetwork):
|
|||||||
|
|
||||||
return net_stream
|
return net_stream
|
||||||
|
|
||||||
async def listen(self, multiaddrs: Sequence[Multiaddr]) -> bool:
|
async def listen(self, *multiaddrs: Sequence[Multiaddr]) -> bool:
|
||||||
"""
|
"""
|
||||||
:param multiaddrs: 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
|
:return: true if at least one success
|
||||||
|
Loading…
x
Reference in New Issue
Block a user