Document symbols via annotation metadata, as described by PEP 727.
Project description
Python documentation annotation metadata
Document symbols via annotation metadata, as described by PEP 727.
This will become an alias to the same functionality in
typing_extensions
if and when it is
implemented.
Installation
pip install docannometa
Usage
from typing import Annotated
from docannometa import Doc
def repeat(
text: Annotated[str, Doc("String to repeat")],
n: Annotated[int, Doc("Number of times to repeat")],
) -> Annotated[str, Doc("Result string of length `n * len(text)`")]:
"""Repeat a string multiple times then concatenate."""
return text * n
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docannometa-0.2.tar.gz
(1.3 kB
view hashes)
Built Distribution
Close
Hashes for docannometa-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9794eea73d2f8637c4006f39beb24f6cd3684618ab4371215caa9d0fdef4d3f |
|
MD5 | 419325648fb7fd430981faea81a5fd67 |
|
BLAKE2b-256 | d74ff8256c436bab6fb3fb81a1ecac24554b04bae52632959e74a5b8b00b76f4 |