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
@ -8,6 +8,7 @@ from libp2p.peer.id import ID
|
||||
from libp2p.peer.peerinfo import PeerInfo
|
||||
from libp2p.peer.peerstore_interface import IPeerStore
|
||||
from libp2p.routing.kademlia.kademlia_peer_router import KadmeliaPeerRouter
|
||||
from libp2p.typing import StreamHandlerFn
|
||||
|
||||
from .host_interface import IHost
|
||||
|
||||
@ -17,9 +18,6 @@ from .host_interface import IHost
|
||||
# telling it to listen on the given listen addresses.
|
||||
|
||||
|
||||
StreamHandlerFn = Callable[[INetStream], Awaitable[None]]
|
||||
|
||||
|
||||
class BasicHost(IHost):
|
||||
|
||||
_network: INetwork
|
||||
|
||||
Reference in New Issue
Block a user