annotated-types

Reusable constraint types to use with typing.Annotated

About annotated-types

Reusable constraint types to use with typing.Annotated

Key Features

  • Reusable constraint metadata for typing.Annotated
  • Expresses bounds and shape constraints in type hints
  • Works cleanly with Pydantic and validator frameworks
  • Keeps validation intent close to type declarations

Installation

uv add annotated-types

Related Tools

Quick Info

Latest Version
0.7.0
First Release
2022
License
MIT License

About pytools.dev

pytools.dev is your go-to directory for the best Python tools, libraries, and frameworks—designed for the modern Python developer.

© 2026 pytools.dev. All rights reserved.
Created with ❤️ by James Fricker