Method
__init__
(
self,
units: str | None,
start: int | None,
stop: int | None,
length: int | None = None,
on_update: cabc.Callable[[ContentRange], None] | None = None,
)
Source from the content-addressed store, hash-verified
| 147 | """ |
| 148 | |
| 149 | def __init__( |
| 150 | self, |
| 151 | units: str | None, |
| 152 | start: int | None, |
| 153 | stop: int | None, |
| 154 | length: int | None = None, |
| 155 | on_update: cabc.Callable[[ContentRange], None] | None = None, |
| 156 | ) -> None: |
| 157 | self.on_update = on_update |
| 158 | self.set(start, stop, length, units) |
| 159 | |
| 160 | #: The units to use, usually "bytes" |
| 161 | units: str | None = _CallbackProperty() # type: ignore[assignment] |
Callers
nothing calls this directly
Tested by
no test coverage detected