Пакет: python3-annotated-types (0.7.0-1)
Ссылки для python3-annotated-types
Ресурсы Debian:
- Сообщения об ошибках
- Developer Information
- Debian журнал изменений
- Файл авторских прав
- Отслеживание заплат Debian
Исходный код python-annotated-types:
- [python-annotated-types_0.7.0-1.dsc]
- [python-annotated-types_0.7.0.orig.tar.gz]
- [python-annotated-types_0.7.0-1.debian.tar.xz]
Сопровождающие:
Внешние ресурсы:
- Сайт [github.com]
Подобные пакеты:
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.
Другие пакеты, относящиеся к python3-annotated-types
|
|
|
|
-
- dep: python3
- интерактивный высокоуровневый объектно-ориентированный язык (версия python3 по умолчанию)
-
- dep: python3-typing-extensions
- Backported and Experimental Type Hints for Python
- или python3-supported-min (>= 3.9)
- Пакет недоступен
Загрузка python3-annotated-types
Архитектура | Размер пакета | В установленном виде | Файлы |
---|---|---|---|
all | 18,3 Кб | 60,0 Кб | [список файлов] |