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

Method seek

rich/progress.py:270–273  ·  view source on GitHub ↗
(self, offset: int, whence: int = 0)

Source from the content-addressed store, hash-verified

268 self._closed = True
269
270 def seek(self, offset: int, whence: int = 0) -> int:
271 pos = self.handle.seek(offset, whence)
272 self.progress.update(self.task, completed=pos)
273 return pos
274
275 def tell(self) -> int:
276 return self.handle.tell()

Callers 1

test_from_fileFunction · 0.45

Calls 1

updateMethod · 0.45

Tested by 1

test_from_fileFunction · 0.36