mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
add typing to transport
This commit is contained in:
6
libp2p/transport/typing.py
Normal file
6
libp2p/transport/typing.py
Normal file
@ -0,0 +1,6 @@
|
||||
from asyncio import StreamReader, StreamWriter
|
||||
from typing import NewType, Callable
|
||||
|
||||
|
||||
THandler = Callable[[StreamReader, StreamWriter], None]
|
||||
|
||||
Reference in New Issue
Block a user