BSD Ports

devel/py-annotated-types 0.7.0 DragonFly

Reusable constraint types to use with typing.Annotated

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
19.8 KiB, 107.8 KiB installed

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.

In the other systems

SystemPortVersion
DragonFlydevel/py-annotated-types0.7.0
FreeBSDdevel/py-annotated-types0.8.0
NetBSDlang/py-annotated-types0.8.0
MidnightBSDdevel/py-annotated-types0.7.0_1
HardenedBSDdevel/py-annotated-types0.8.0
GhostBSDdevel/py-annotated-types0.8.0

Install

Binary package:

pkg install py311-annotated-types

From DPorts:

cd /usr/dports/devel/py-annotated-types && make install clean

Dependencies

Run dependencies 1