add still needed TYPE_CHECK

This commit is contained in:
Chih Cheng Liang
2019-08-05 10:35:56 +08:00
parent 87ef2e4618
commit 29091266fc
6 changed files with 22 additions and 12 deletions

4
libp2p/network/typing.py Normal file
View File

@ -0,0 +1,4 @@
from typing import Awaitable, Callable
from libp2p.stream_muxer.muxed_stream_interface import IMuxedStream
GenericProtocolHandlerFn = Callable[[IMuxedStream], Awaitable[None]]