{
  "id": "python-typing-annotated-table",
  "kind": "table",
  "slug": "python-typing-annotated",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/python-typing-annotated/",
  "title": "Attach metadata to a type with typing.Annotated",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "Annotated[T, x]",
      "source": "Python PEPs",
      "detail": "Adds metadata x to type T"
    },
    {
      "name": "__metadata__",
      "source": "Python PEPs",
      "detail": "Attribute that stores the metadata at runtime"
    },
    {
      "name": "static analysis tools",
      "source": "Python PEPs",
      "detail": "May consume the metadata"
    },
    {
      "name": "PEP 593",
      "source": "Python PEPs",
      "detail": "Extends PEP 484 annotations with arbitrary metadata"
    }
  ],
  "related_slugs": [
    "python-typing-annotations",
    "python-dataclasses",
    "python-functools"
  ],
  "license": "CC-BY-4.0",
  "source_license": "Public-Domain (Python PEPs); PSF-2.0 (Python docs); prose restates cited source lines in own words",
  "as_of": "2026-11-19",
  "status": "deep-draft-20261119",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}