[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-08-18 16:03:06 +00:00
parent 38a0416d51
commit eddb419c8f
2 changed files with 11 additions and 2 deletions

View file

@ -1046,7 +1046,11 @@ def _resumable_blob_hashes(entry: Path) -> set[str]:
def _manifest_hash_split(
repo_type: str, repo_id: str, variant: Optional[str], *, root: Optional[Path] = None
repo_type: str,
repo_id: str,
variant: Optional[str],
*,
root: Optional[Path] = None,
) -> tuple[set[str], set[str]]:
"""``(main, companion)`` blob hashes from the variant's manifest, split the way the worker
splits them when it asks for a purge. Empty pair when either step cannot answer, which

View file

@ -261,7 +261,12 @@ def two_roots(monkeypatch, tmp_path):
return active / "models--Org--Model", previous / "models--Org--Model"
def _record_in(entry: Path, transport: str, variant, blob: str = BLOB):
def _record_in(
entry: Path,
transport: str,
variant,
blob: str = BLOB,
):
download_manifest.write_manifest(
"model",
"Org/Model",