Skip to content

Commit

Permalink
add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Dec 16, 2023
1 parent 3f4600d commit 2cc69dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jupyter_client/ioloop/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def send(
self.__start_polling()

def recv(self, flags: int = 0, copy: bool = True, track: bool = False) -> t.Any:
"""Receive data on the channel."""
assert self.socket is not None
value = self.socket.recv(flags, copy=copy, track=track)
if self.__on_recv:
Expand All @@ -83,6 +84,7 @@ def close(self, linger: t.Optional[int] = None) -> None:
self.socket = None

def closed(self) -> bool:
"""Check if the channel is closed."""
if self.socket is None:
return True
if self.socket.closed:
Expand Down

0 comments on commit 2cc69dd

Please sign in to comment.