Registry / type-stubs / ty-types

ty-types

JSON →
library0.0.49pypypiunverified

A CLI tool and JSON-RPC server that exposes Python type inference from the 'ty' library. It provides structured type descriptors, callable signature extraction, and support for generics, TypeVar bounds, and ParamSpec. Current version 0.0.31, updated frequently.

pip install ty-types
INSTALL
IMPORT
SIG · TY-TYPES
T
ty-types
type-stubspythonv0.0.49
Install
1.8s avg
Import
Disk
16MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.49 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TypeDescriptor
from ty_types import TypeDescriptor
from ty_types import TypeDescriptor

Quickstart: import TypeDescriptor and infer types. Also see CLI: `ty-types` command.

from ty_types import TypeDescriptor import os # Infer type of a Python expression expr = '1 + 2' # Replace with actual source code or file path td = TypeDescriptor(expr) # The descriptor will fetch type from 'ty' library print(td) # For JSON-RPC server, use: python -m ty_types.server
ty-types --version
Debug
Known issues
deprecatedThe old `ide_support` module has been removed; use `direct_call` bindings instead.
fix
Replace any imports from `ty_types.ide_support` with `ty_types.direct_call`.
affects: <0.0.19
breakingGeneric descriptors now always serialize type parameters; serialization format changed in 0.0.19.
fix
Update consumers of serialized type data to expect `typeParameters` field always present (even if empty).
affects: >=0.0.19
gotchaThe JSON-RPC server requires Python 3.8 or later; some advanced type features (like ParamSpec) need Python 3.10+.
fix
Ensure runtime environment matches Python version requirements in your project.
affects: >=0.0.31
Upgrade
Version history
0.0.49latest on PyPI · released Jun 12, 2026
Audit
Dependencies
tyrequiredCore type inference engine
Agent activity
28 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources
ty-types — pip install ty-types · libregistry