# pboot-typing **Repository Path**: pboot-org/pboot-typing ## Basic Information - **Project Name**: pboot-typing - **Description**: PBOOT 模型与类型层 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-12-05 - **Last Updated**: 2026-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pboot-typing The type-system layer the [pboot-web](https://gitee.com/pboot-org/pboot) stack is written against. | Module | 内容 | | --- | --- | | `pboot.typing` | 标注与类型工具:`Self`、`override`、`deprecated`、`TypeAliasType` 等 | | `pboot.typing.annotated_types` | `Annotated[...]` 元数据容器:`Gt`、`MinLen`、`Predicate` 等 | | `pboot.typing.doc` | `Annotated[...]` 的文档字符串载荷 | | `pboot.typing.inspection` | 类型内省:`get_type_hints`、`is_annotated`、`typing_objects` | ## Use ```python from pboot.typing import Self, override, deprecated from pboot.typing.doc import Doc from pboot.typing.inspection.introspection import get_type_hints, is_annotated def handler(name: Annotated[str, Doc("Who to greet")]) -> None: ... ``` This package is a component of pboot-web. It is the only place where the stack's typing vocabulary is defined: kernel, validator and view all import from here, so `typing` 与版本之间的差异只需要在这一个包里处理。 ## Licenses `LICENSE.typing_extensions`、`LICENSE.typing_inspection`、`LICENSE.annotated_doc` 随每个 wheel 与 sdist 一起发行。