MCPcopy
hub / github.com/pallets/click / readable

Method readable

src/click/_compat.py:113–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 return self._stream.read(size)
112
113 def readable(self) -> bool:
114 if self._force_readable:
115 return True
116 x = getattr(self._stream, "readable", None)
117 if x is not None:
118 return t.cast(bool, x())
119 try:
120 self._stream.read(0)
121 except Exception:
122 return False
123 return True
124
125 def writable(self) -> bool:
126 if self._force_writable:

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected