fastports

annotated-types 0.7.0

devel/py-annotated-types

Reusable constraint types to use with typing.Annotated

Category
devel
Maintainer
sunpoet@FreeBSD.org
WWW
https://github.com/annotated-types/annotated-types
License
MIT
USES
python

Description

PEP-593 added typing.Annotated as a way of adding context-specific metadata to
existing types, and specifies that Annotated[T, x] should be treated as T by any
tool or library without special logic for x.

annotated-types provides metadata objects which can be used to represent common
constraints such as upper and lower bounds on scalar values and collection
sizes, a Predicate marker for runtime checks, and descriptions of how we intend
these metadata to be interpreted. In some cases, we also note alternative
representations which do not require this package.

Dependencies

Commit History

may be incomplete — full history at freebsd-ports on GitHub

Loading commit history — this may take up to a minute on first view. Reload the page in a moment.