mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Apply PR feedback: fix type hints
This commit is contained in:
@ -306,8 +306,7 @@ class Pubsub:
|
||||
# Tell router we are leaving this topic
|
||||
await self.router.leave(topic_id)
|
||||
|
||||
# FIXME: `raw_msg` can be further type hinted with mypy_protobuf
|
||||
async def message_all_peers(self, raw_msg: Any) -> None:
|
||||
async def message_all_peers(self, raw_msg: bytes) -> None:
|
||||
"""
|
||||
Broadcast a message to peers
|
||||
:param raw_msg: raw contents of the message to broadcast
|
||||
|
||||
Reference in New Issue
Block a user