py-libp2p/libp2p/network/typing.py
2019-08-05 10:46:49 +08:00

5 lines
177 B
Python

from typing import Awaitable, Callable
from libp2p.stream_muxer.muxed_stream_interface import IMuxedStream
GenericProtocolHandlerFn = Callable[[IMuxedStream], Awaitable[None]]