INNER CODE UNIT · Python

Doc

pybuilder/pybuilder · src/main/python/pybuilder/_vendor/annotated_doc/main.py:1

class Doc:
    """Define the documentation of a type annotation using `Annotated`, to be
        used in class attributes, function and method parameters, return values,
        and variables.

    The value should be a positional-only string literal to allow static tools
    like editors and documentation generators to use it.

    This complements docstrings.

    The string value passed is available in the attribute `documentation`.

    Example:

    ```Python
    from typing import Annotated
    from annotated_doc import Doc

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…