Annotated Doc

0.0.4 · active · verified Sat Mar 28

A Python library that enables inline documentation of parameters, class attributes, return types, and variables using the `Annotated` type hint. Current version: 0.0.4. Release cadence: irregular, with the latest release on November 10, 2025.

Warnings

Install

Imports

Quickstart

A simple function demonstrating the use of `Doc` for inline documentation

from typing import Annotated
from annotated_doc import Doc

def greet(name: Annotated[str, Doc('The name of the person to greet')]) -> None:
    print(f'Hello, {name}!')

greet('Alice')

view raw JSON →