Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.45 KB

File metadata and controls

24 lines (19 loc) · 1.45 KB

Litestar Logo - Light

type-lens is a library for introspecting Python type annotations at runtime. It aims to provide a unified, ergonomic API that works consistently across Python versions, smoothing over the many version-specific quirks and behavioral differences in Python's typing module.

The library is built around three core classes:

  • TypeView: Represents a type annotation and exposes a rich set of properties for inspection.
  • ParameterView: Represents a parameter and its associated type information, in the context of a signature.
  • CallableView: Represents a whole callable signature, including all its parameters and return type.

See the documentation and GitHub repository for full details.