Download asset to the path or return an iterator for the stream.
(
self, path: None | str = None, chunk_size: int | None = 1
)
| 164 | return True |
| 165 | |
| 166 | def download_asset( |
| 167 | self, path: None | str = None, chunk_size: int | None = 1 |
| 168 | ) -> tuple[int, dict[str, Any], Iterator] | None: |
| 169 | """ |
| 170 | Download asset to the path or return an iterator for the stream. |
| 171 | """ |
| 172 | if path is None: |
| 173 | return self._requester.getStream(self.url, chunk_size=chunk_size) |
| 174 | self._requester.getFile(self.url, path=path, chunk_size=chunk_size) |
| 175 | return None |
| 176 | |
| 177 | def update_asset(self, name: str, label: str = "") -> GitReleaseAsset: |
| 178 | """ |
no test coverage detected