py-libp2p/libp2p/transport/typing.py
Chih Cheng Liang 28f6de37ee
Fix the rest of the typing hints (#232)
* ignore kad

* fix swarm, and minor

* fix init and swarm

* ignore pb

* enable mypy

* fix basic host

* fix tcp

* fix mplex

* add typing for pb

* skip format pyi

* [mypy] no need to ignore pb now

* add typing to chat
2019-08-11 16:47:54 +08:00

5 lines
154 B
Python

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