py-libp2p/libp2p/transport/typing.py

6 lines
142 B
Python
Raw Normal View History

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