BSD Ports

devel/py-annotated-types 0.7.0_1 MidnightBSD

Reusable constraint types to use with typing.Annotated

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
devel, 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.

In the other systems

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

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}annotated-types

From mports:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}annotated-types>0:devel/py-annotated-types

Dependencies

As this port's Makefile names them.

Build 1

Build dependencies 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
annotated_types-0.7.0.tar.gz16081aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89
Master sites 1
  • PYPI