mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 23:20:55 +00:00
add still needed TYPE_CHECK
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user