| 69 | |
| 70 | |
| 71 | class DummyStream: |
| 72 | def __init__(self, tty: bool = False) -> None: |
| 73 | self.closed = False |
| 74 | self.tty = tty |
| 75 | self.writes: list[str] = [] |
| 76 | |
| 77 | def isatty(self) -> bool: |
| 78 | return self.tty |
| 79 | |
| 80 | def write(self, value: str) -> int: |
| 81 | self.writes.append(value) |
| 82 | return len(value) |
| 83 | |
| 84 | def flush(self) -> None: |
| 85 | return None |
| 86 | |
| 87 | |
| 88 | class DummyProgressBar: |
no outgoing calls