Skip to content

Installation

typing-graph requires Python 3.10 or later.

Basic installation

pip install typing-graph
uv add typing-graph
poetry add typing-graph

Dependencies

typing-graph has minimal dependencies to keep your dependency tree lean:

Package Purpose
typing-inspection Low-level type introspection utilities from Pydantic
typing-extensions Backports of typing features for older Python versions

Optional dependencies

annotated-types

For convenience methods that work with annotated-types constraint metadata (like Gt, Lt, MinLen), install with the extra:

pip install 'typing-graph[annotated-types]'
uv add 'typing-graph[annotated-types]'
poetry add 'typing-graph[annotated-types]'

Install from repository

To install the latest development version directly from GitHub:

pip install git+https://github.com/tbhb/typing-graph.git
uv add git+https://github.com/tbhb/typing-graph.git
poetry add git+https://github.com/tbhb/typing-graph.git