{
 "action": "Replace the old line with the new one; the rest of the code can stay.",
 "alternatives": [],
 "applicability": {
  "exit_code": 0,
  "line": 11,
  "method": "literal_patch",
  "occurrences": 1,
  "output": "same",
  "patched_sha": "765ef5847637",
  "reason": "applied word for word, the patch parses, drops the old names, runs on 2.2.0 and prints what the verified example prints",
  "run_on": "2.2.0",
  "status": "applies"
 },
 "by_notes": true,
 "changelog_ref": {
  "quote": "`BucketUrl.handle` has been renamed to `BucketUrl.uri` (type changed from `str` to `HfUri`, use `.to_uri()` for the string form)",
  "url": "https://github.com/huggingface/huggingface_hub/releases/tag/v1.9.1"
 },
 "confirmations": {
  "failed": 0,
  "worked": 5
 },
 "detect": [
  "bucket.handle"
 ],
 "ecosystem": "pypi",
 "equivalence": "same",
 "error_kind": "missing_attr",
 "error_signature": {
  "message": "'BucketUrl' object has no attribute 'handle'",
  "norm": "missing_attr:handle",
  "type": "AttributeError"
 },
 "first_seen": "2026-10-20T16:11:13+00:00",
 "format": "replace",
 "format_version": 2,
 "id": "pypi/huggingface-hub/2.2.0/0001",
 "kind": "renamed",
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "package": "huggingface-hub",
 "proof": {
  "applicability": {
   "exit_code": 0,
   "line": 11,
   "method": "literal_patch",
   "occurrences": 1,
   "output": "same",
   "patched_sha": "765ef5847637",
   "reason": "applied word for word, the patch parses, drops the old names, runs on 2.2.0 and prints what the verified example prints",
   "run_on": "2.2.0",
   "status": "applies"
  },
  "auto_apply": true,
  "auto_apply_reason": "proof.equivalent is true and the patch applies word for word",
  "auto_apply_rule": "Automatic application is allowed only when proof.equivalent is true and proof.applicability.status is applies; otherwise show the correction to the user as a lead and do not apply it on your own.",
  "equivalence": "same",
  "equivalent": true,
  "fails_on": "2.2.0",
  "fixed_on": "2.2.0",
  "level": "differential",
  "method": {
   "fix_on": "2.2.0",
   "name": "stdout_match",
   "normalization": "lines stripped, blank lines dropped, runs of whitespace collapsed; memory addresses, timestamps and temporary paths masked",
   "original_on": "1.8.0",
   "scope": "the observable stdout of one example script; return values, files, other inputs and exception types are not compared, so a match is not a proof of equivalent behaviour"
  },
  "rechecked": "2026-10-24",
  "rechecked_on": "2.3.0",
  "script_right": "from huggingface_hub import BucketUrl\n\nBUCKET_URL = \"https://huggingface.co/buckets/my-org/training-logs\"\n\n\ndef main() -> None:\n    # Pure string parsing; no network access is performed.\n    bucket = BucketUrl(BUCKET_URL)\n\n    # The handle is the hf:// URI form, suitable for a storage config.\n    print(bucket.uri.to_uri())\n\n\nif __name__ == \"__main__\":\n    main()",
  "script_wrong": "from huggingface_hub import BucketUrl\n\nBUCKET_URL = \"https://huggingface.co/buckets/my-org/training-logs\"\n\n\ndef main() -> None:\n    # Pure string parsing; no network access is performed.\n    bucket = BucketUrl(BUCKET_URL)\n\n    # The handle is the hf:// URI form, suitable for a storage config.\n    print(bucket.handle)\n\n\nif __name__ == \"__main__\":\n    main()",
  "works_on": "1.8.0"
 },
 "right": "print(bucket.uri.to_uri())",
 "seen_in_models": [
  "claude-sonnet-5-5",
  "gemini-3.8-flash",
  "gpt-6.1-sol"
 ],
 "seq": 1,
 "slug": "bucketurl-handle",
 "source": "pipeline",
 "symbol": "BucketUrl.handle",
 "updated": "2026-10-28T08:02:33+00:00",
 "url": "https://formachines.ai/errata/pypi/huggingface-hub/0001-bucketurl-handle/",
 "variant_confirmations": 5,
 "variant_models": [
  "claude-sonnet-5-5",
  "gemini-3.8-flash",
  "gpt-6.1-sol"
 ],
 "verified": "sandbox",
 "versions": {
  "changed_in": ">1.8.0,<=2.2.0",
  "fails_on": "2.2.0",
  "works_on": "1.8.0"
 },
 "wrong": "print(bucket.handle)"
}