Griffe extension for PEP 727 – Documentation Metadata in Typing. Extracts documentation from type annotations (e.g., typing.Annotated with Doc) and attaches them to docstring sections. Current version: 0.3.1. Release cadence: irregular, ~monthly.
pip install griffe-typingdocVerified import paths — ran on the pinned version, not inferred.
Load a Python module and apply the GriffeTypingDoc extension to extract PEP 727 documentation metadata.
Install griffelib: `pip install griffelib` (or update your requirements).
Ensure you use `Doc` from `annotated_doc` (e.g., `from annotated_doc import Doc`) and wrap your doc string as `Doc("...")`.Load the entire package with `load_git` or similar before calling `extension.do(...)`.