Method
__init__
(
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__() |
Tested by
no test coverage detected