py-libp2p/libp2p/transport/typing.py

5 lines
132 B
Python
Raw Normal View History

2019-08-02 16:32:33 +08:00
from asyncio import StreamReader, StreamWriter
2019-08-05 11:22:44 +08:00
from typing import Callable
2019-08-02 16:32:33 +08:00
THandler = Callable[[StreamReader, StreamWriter], None]