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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-annotated-types | 0.7.0_1 |
| FreeBSD | devel/py-annotated-types | 0.8.0 |
| DragonFly | devel/py-annotated-types | 0.7.0 |
| HardenedBSD | devel/py-annotated-types | 0.8.0 |
| GhostBSD | devel/py-annotated-types | 0.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
${PYTHON_PKGNAMEPREFIX}hatchling>=0: devel/py-hatchling
Build dependencies 1
Required by 3
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| annotated_types-0.7.0.tar.gz | 16081 | aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89 |
Master sites 1
- PYPI