{
 "ecosystem": "pypi",
 "errata": [
  {
   "action": "Not for automatic application — after the patch the example still uses PUBLIC_KEY_TYPES, which the verified example does not: the patch covers part of the change. Show this correction to the user as a lead. Replace the old line with the new one; the rest of the code can stay.",
   "alternatives": [],
   "applicability": {
    "leftover": [
     "PUBLIC_KEY_TYPES"
    ],
    "line": 11,
    "method": "literal_patch",
    "occurrences": 1,
    "patched_sha": "0bae06b62c77",
    "reason": "after the patch the example still uses PUBLIC_KEY_TYPES, which the verified example does not: the patch covers part of the change",
    "run_on": "50.0.2",
    "status": "incomplete"
   },
   "by_notes": true,
   "changelog_ref": {
    "quote": "Removed the deprecated ``PUBLIC_KEY_TYPES``, ``PRIVATE_KEY_TYPES``, ``CERTIFICATE_PRIVATE_KEY_TYPES``, ``CERTIFICATE_ISSUER_PUBLIC_KEY_TYPES``, and ``CERTIFICATE_PUBLIC_KEY_TYPES`` type aliases.",
    "url": "https://github.com/pyca/cryptography/blob/HEAD/CHANGELOG.rst"
   },
   "confirmations": {
    "failed": 0,
    "worked": 6
   },
   "detect": [
    "PUBLIC_KEY_TYPES"
   ],
   "ecosystem": "pypi",
   "equivalence": "same",
   "error_kind": "missing_import",
   "error_signature": {
    "message": "cannot import name 'PUBLIC_KEY_TYPES' from 'cryptography.hazmat.primitives.asymmetric.types' (/usr/local/lib/python3.11/site-packages/cryptography/hazmat/primitives/asymmetric/types.py)",
    "norm": "missing_import:public_key_types",
    "type": "ImportError"
   },
   "first_seen": "2026-10-20T16:11:13+00:00",
   "format": "replace",
   "format_version": 2,
   "id": "pypi/cryptography/50.0.2/0001",
   "json": "https://formachines.ai/errata/pypi/cryptography/0001-public-key-types/index.json",
   "kind": "removed",
   "package": "cryptography",
   "proof": {
    "applicability": {
     "leftover": [
      "PUBLIC_KEY_TYPES"
     ],
     "line": 11,
     "method": "literal_patch",
     "occurrences": 1,
     "patched_sha": "0bae06b62c77",
     "reason": "after the patch the example still uses PUBLIC_KEY_TYPES, which the verified example does not: the patch covers part of the change",
     "run_on": "50.0.2",
     "status": "incomplete"
    },
    "auto_apply": false,
    "auto_apply_reason": "the patch gives incomplete when applied 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": "50.0.2",
    "fixed_on": "50.0.2",
    "level": "differential",
    "method": {
     "fix_on": "50.0.2",
     "name": "stdout_match",
     "normalization": "lines stripped, blank lines dropped, runs of whitespace collapsed; memory addresses, timestamps and temporary paths masked",
     "original_on": "46.0.6",
     "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"
    },
    "works_on": "46.0.6"
   },
   "right": "from cryptography.hazmat.primitives.asymmetric.types import PublicKeyTypes",
   "seen_in_models": [
    "gemini-3.8-flash",
    "gpt-6.1-sol"
   ],
   "seq": 1,
   "slug": "public-key-types",
   "source": "pipeline",
   "symbol": "PUBLIC_KEY_TYPES",
   "updated": "2026-10-27T17:20:00+00:00",
   "url": "https://formachines.ai/errata/pypi/cryptography/0001-public-key-types/",
   "variant_confirmations": 6,
   "variant_models": [
    "gemini-3.8-flash",
    "gpt-6.1-sol"
   ],
   "verified": "sandbox",
   "versions": {
    "changed_in": ">46.0.6,<=50.0.2",
    "fails_on": "50.0.2",
    "works_on": "46.0.6"
   },
   "wrong": "from cryptography.hazmat.primitives.asymmetric.types import PUBLIC_KEY_TYPES"
  }
 ],
 "fails_on": [
  "50.0.2"
 ],
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "models": [
  {
   "checked": 19,
   "model": "claude-sonnet-5-5",
   "outdated": 1,
   "share": 0.05
  },
  {
   "checked": 24,
   "model": "gpt-6.1-sol",
   "outdated": 11,
   "share": 0.46
  },
  {
   "checked": 12,
   "model": "gemini-3.8-flash",
   "outdated": 5,
   "share": 0.42
  }
 ],
 "new_version": "50.0.2",
 "old_version": "46.0.6",
 "package": "cryptography",
 "updated": "2026-10-27"
}