Method
__init__
(self, unit_scale=False, unit_divisor=1000)
Source from the content-addressed store, hash-verified
| 21 | class FractionColumn(ProgressColumn): |
| 22 | """Renders completed/total, e.g. '0.5/2.3 G'.""" |
| 23 | def __init__(self, unit_scale=False, unit_divisor=1000): |
| 24 | self.unit_scale = unit_scale |
| 25 | self.unit_divisor = unit_divisor |
| 26 | super().__init__() |
| 27 | |
| 28 | def render(self, task): |
| 29 | """Calculate common unit for completed and total.""" |
Callers
nothing calls this directly
Tested by
no test coverage detected