[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1050339: RFP: python-annotated-types -- metadata objects for python annotations



Package: wnpp
Severity: wishlist
X-Debbugs-Cc: stephanlachnit@debian.org

* Package name    : python-annotated-types
  Version         : 0.5.0
  Upstream Contact:  Zac Hatfield-Dodds <zac@zhd.dev>
* URL             : https://github.com/annotated-types/annotated-types/
* License         : MIT
  Programming Lang: Python
  Description     : metadata objects for python annotations

>From GitHub:

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.


Not really important to me, but python3-iminuit has a possible test case using
this package.


Reply to: