{"library":"typing-inspection","type":"library","category":null,"description":"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.","language":"python","status":"active","version":"0.4.2","tags":["typing","introspection","annotations","runtime","pydantic","type-hints"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install typing-inspection","imports":["from typing_inspection.introspection import inspect_annotation","from typing_inspection.introspection import AnnotationSource","from typing_inspection.introspection import UNKNOWN","from typing_inspection.typing_objects import is_union","from typing_inspection.introspection import get_literal_values","from typing_inspection.introspection import is_union_origin","from typing_inspection.introspection import ForbiddenQualifier"]}],"homepage":null,"github":"https://github.com/pydantic/typing-inspection","docs":"https://pydantic.github.io/typing-inspection/dev/","changelog":"https://github.com/pydantic/typing-inspection/blob/main/HISTORY.md","pypi":"https://pypi.org/project/typing-inspection/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.6,"avg_import_s":0.05,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/typing-inspection/compatibility"}}