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
Release files for docannometa 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| docannometa-0.2.tar.gz | 1.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| docannometa-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.0 kB
Release files / docannometa-0.2.tar.gz
| Download URL | docannometa-0.2.tar.gz |
|---|---|
| Size | 1.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ad666be945955bf3d4c9924a0cf719c83d16bdc16a57f07f27396322b225300
|
|
BLAKE2b-256 checksum How to use checksums |
04043ed5b6698afe2cdedb53a7dbea0ba243315261793f323899cf5861e6d5e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / docannometa-0.2-py3-none-any.whl
| Download URL | docannometa-0.2-py3-none-any.whl |
|---|---|
| Size | 1.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9794eea73d2f8637c4006f39beb24f6cd3684618ab4371215caa9d0fdef4d3f
|
|
BLAKE2b-256 checksum How to use checksums |
d74ff8256c436bab6fb3fb81a1ecac24554b04bae52632959e74a5b8b00b76f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|