mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Enforce pre-summary newline in docstrings
This commit is contained in:
@ -14,7 +14,8 @@ class IMuxedConn(ABC):
|
||||
|
||||
@abstractmethod
|
||||
def __init__(self, conn: ISecureConn, peer_id: ID) -> None:
|
||||
"""create a new muxed connection.
|
||||
"""
|
||||
create a new muxed connection.
|
||||
|
||||
:param conn: an instance of secured connection
|
||||
for new muxed streams
|
||||
@ -32,14 +33,16 @@ class IMuxedConn(ABC):
|
||||
|
||||
@abstractmethod
|
||||
def is_closed(self) -> bool:
|
||||
"""check connection is fully closed.
|
||||
"""
|
||||
check connection is fully closed.
|
||||
|
||||
:return: true if successful
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
async def open_stream(self) -> "IMuxedStream":
|
||||
"""creates a new muxed_stream.
|
||||
"""
|
||||
creates a new muxed_stream.
|
||||
|
||||
:return: a new ``IMuxedStream`` stream
|
||||
"""
|
||||
@ -59,7 +62,8 @@ class IMuxedStream(ReadWriteCloser):
|
||||
|
||||
@abstractmethod
|
||||
def set_deadline(self, ttl: int) -> bool:
|
||||
"""set deadline for muxed stream.
|
||||
"""
|
||||
set deadline for muxed stream.
|
||||
|
||||
:return: a new stream
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user