MCPcopy
hub / github.com/Textualize/rich / __init__

Method __init__

rich/progress.py:185–196  ·  view source on GitHub ↗
(
        self,
        handle: BinaryIO,
        progress: "Progress",
        task: TaskID,
        close_handle: bool = True,
    )

Source from the content-addressed store, hash-verified

183 """A reader that tracks progress while it's being read from."""
184
185 def __init__(
186 self,
187 handle: BinaryIO,
188 progress: "Progress",
189 task: TaskID,
190 close_handle: bool = True,
191 ) -> None:
192 self.handle = handle
193 self.progress = progress
194 self.task = task
195 self.close_handle = close_handle
196 self._closed = False
197
198 def __enter__(self) -> "_Reader":
199 self.handle.__enter__()

Callers 9

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected