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.
pip install annotated-docVerified import paths — ran on the pinned version, not inferred.
A simple function demonstrating the use of `Doc` for inline documentation
Use `from annotated_doc import Doc` to correctly import the `Doc` class.
Ensure that `Doc` is used within type annotations to document parameters, class attributes, return types, and variables.
Install the package using 'pip install annotated-doc'.
Upgrade to Python 3.9 or later, or install the 'typing-extensions' package and import 'Annotated' from it.
Ensure the correct import statement: 'from annotated_doc import Doc'.
For Python versions prior to 3.9, use generic types imported from the `typing` module (e.g., `from typing import List`, then `Annotated[List[int], Doc(...)]`). For Python 3.9 and later, `list[int]` is valid.