Add YAPF style + ignore, and format tracked Python files

This commit is contained in:
2025-12-29 18:42:02 -08:00
parent c019c00aed
commit 507946a3e4
108 changed files with 11664 additions and 6494 deletions

View File

@@ -28,7 +28,10 @@ def download_file(
*,
session: Optional[requests.Session] = None,
timeout_s: float = 30.0,
progress_callback: Optional[Callable[[int, Optional[int], str], None]] = None,
progress_callback: Optional[Callable[[int,
Optional[int],
str],
None]] = None,
) -> bool:
output_path = Path(output_path)
output_path.parent.mkdir(parents=True, exist_ok=True)
@@ -69,7 +72,10 @@ def download_file(
progress_callback(downloaded, total, label)
elif bar is not None:
bar.update(
downloaded=downloaded, total=total, label=label, file=sys.stderr
downloaded=downloaded,
total=total,
label=label,
file=sys.stderr
)
except Exception:
pass