lang/py-annotated-types 0.8.0 NetBSD
Reusable constraint types to use with typing.Annotated
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
293f7eaafd- License
- mit
- Categories
- lang, python
- Package size
- 20.4 KiB, 103.7 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.
This package 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 |
|---|---|---|
| NetBSD | lang/py-annotated-types | 0.8.0 |
| DragonFly | devel/py-annotated-types | 0.7.0 |
Install
Binary package:
pkgin install py311-annotated-types
From pkgsrc:
cd /usr/pkgsrc/lang/py-annotated-types && make install clean
Dependencies
Run dependencies 1
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-annotated-types-0.8.0,py313-annotated-types-0.8.0,py314-annotated-types-0.8.0