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

View File

@ -1,11 +1,14 @@
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING
from libp2p.stream_muxer.muxed_connection_interface import IMuxedConn
if TYPE_CHECKING:
from libp2p.stream_muxer.muxed_connection_interface import IMuxedConn
class IMuxedStream(ABC):
mplex_conn: IMuxedConn
mplex_conn: "IMuxedConn"
@abstractmethod
async def read(self) -> bytes: