BSD Ports

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

SystemPortVersion
NetBSDlang/py-annotated-types0.8.0
DragonFlydevel/py-annotated-types0.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

Commit history 1

DateCommitCreditsLog message
293f7eaafd wiz py-annotated-types: update to 0.8.0.
Rename DocInfo to Doc by @zen-xu in #80 Add support for Python 3.13 by @hugovk in #83 Fix docstring of Timezone by @Viicos in #84 Update license-files to be PEP-639 compliant (#85) by @shoeffner in #86 fix: typo in README.md by @camiloaz in #87 add CI for PyPy3.11 and fix test (issue 71) by @mattip in #88 Fix string predicate names in doc by @leogermond in #90 Add SPDX license expression by @wichert in #92 Added Python 3.14 to the test matrix by @imtoopunkforyou in #96 Add support for Python 3.14 and drop EOL 3.8-3.9 by @hugovk in #97 Fix typo in Len docstring by @Dutcho in #100 Prepare for 0.8.0 release by @adriangb in #103