python-annotated-types 0.7.0-1 source package in Ubuntu

Changelog

python-annotated-types (0.7.0-1) unstable; urgency=medium

  * New upstream release.

 -- Edward Betts <edward@4angle.com>  Wed, 22 May 2024 22:23:13 +0200

Upload details

Uploaded by:
Debian Python Team
Uploaded to:
Sid
Original maintainer:
Debian Python Team
Architectures:
all
Section:
misc
Urgency:
Medium Urgency

See full publishing history Publishing

Series Pocket Published Component Section
Oracular release universe misc

Builds

Oracular: [FULLYBUILT] amd64

Downloads

File Size SHA-256 Checksum
python-annotated-types_0.7.0-1.dsc 2.2 KiB 32f8e04fc5918759246e68eca4833879687a1d31e59296ef0ea59de5e96ed70e
python-annotated-types_0.7.0.orig.tar.gz 14.9 KiB 791241e2b1e83031543246d9b3b304430233ff964a32a2cfac47896b4eed2513
python-annotated-types_0.7.0-1.debian.tar.xz 2.8 KiB 6b604a267e2cc5915c9d9c458cf80851a2212ac9cec66e330b2e19d22a1c84fd

Available diffs

No changes file available.

Binary packages built by this source

python3-annotated-types: Reusable constraint types to use with typing.Annotated

 Extension to Python's type annotation system, leveraging the capabilities of
 typing.Annotated to incorporate metadata and constraints directly into type
 hints. This package facilitates the representation of common constraints such
 as value bounds (e.g., greater than, less than), length restrictions on
 collections, and predicates for runtime checks, among others. Designed to
 enhance the expressiveness and utility of type annotations for both static
 analysis tools and runtime validation libraries.
 .
 Key features:
   - Scalar Value Constraints: Define bounds on scalar values (e.g., integers,
     floats) with Gt, Lt, Ge, Le for greater/less than (or equal to)
     comparisons.
   - Collection Size Constraints: Specify the expected size of collections
     using Len, MinLen, and MaxLen, applicable to any type supporting the len()
     function.
   - Runtime Checks: Utilize the Predicate marker to denote runtime checks,
     enabling custom validation logic within type annotations.
   - Comprehensive Documentation: Annotations can include documentation strings
     via the Doc marker, improving code readability and support for static
     analysis tools.
   - No Runtime Overhead for Checks: While enhancing type annotations with
     meaningful constraints, the package avoids introducing runtime overhead by
     not performing automatic validation checks, preserving performance.