move stream and connection interfaces to abc

This commit is contained in:
Chih Cheng Liang
2019-08-05 11:17:38 +08:00
parent c804f5ad19
commit 9e0a806218
11 changed files with 56 additions and 72 deletions

View File

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