py-libp2p/libp2p/transport/typing.py
2019-08-05 10:42:43 +08:00

7 lines
143 B
Python

from asyncio import StreamReader, StreamWriter
from typing import NewType, Callable
THandler = Callable[[StreamReader, StreamWriter], None]