Add YAPF style + ignore, and format tracked Python files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user