typing-inspection
JSON →typing-inspection provides runtime tools to inspect Python type annotations at runtime. Maintained by the Pydantic team, it is split into two submodules: `typing_inspection.typing_objects` (predicate functions like `is_union`, `is_literal`, `is_any`, etc. that correctly handle both `typing` and `typing_extensions` variants) and `typing_inspection.introspection` (higher-level helpers such as `inspect_annotation`, `get_literal_values`, and `is_union_origin`). Current version is 0.4.2 (released 2025-10-01); the project has released frequently since its initial release in February 2025.
Traffic · last 30 days ↑300% vs prev 7d
total hits 16
actors 6 distinct systems
last hit 1h ago ClaudeBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇬🇧 United Kingdom · 🇫🇮 Finland
Resources
API endpoints
full doc /v1/registry/typing-inspection
compatibility /v1/registry/typing-inspection/compatibility