mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
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
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from asyncio import StreamReader, StreamWriter
|
||||
from typing import Callable
|
||||
from typing import Awaitable, Callable
|
||||
|
||||
THandler = Callable[[StreamReader, StreamWriter], None]
|
||||
THandler = Callable[[StreamReader, StreamWriter], Awaitable[None]]
|
||||
|
||||
Reference in New Issue
Block a user