7 lines
212 B
Python
7 lines
212 B
Python
from typing import Awaitable, Callable, NewType
|
|
|
|
from libp2p.network.stream.net_stream_interface import INetStream
|
|
|
|
TProtocol = NewType("TProtocol", str)
|
|
StreamHandlerFn = Callable[[INetStream], Awaitable[None]]
|