(self)
| 62 | self._is_tty = hasattr(sys.stderr, "isatty") and sys.stderr.isatty() |
| 63 | |
| 64 | def start(self) -> "ProgressLine": |
| 65 | self._stop.clear() |
| 66 | if self._is_tty: |
| 67 | self._thread = threading.Thread(target=self._spin, daemon=True) |
| 68 | self._thread.start() |
| 69 | return self |
| 70 | |
| 71 | def update(self, percent: int, message: str = "") -> None: |
| 72 | self.percent = percent |