Skip to main content

ty-extended

PyPI

Extend Ty type checker with plugins. ty-extended runs plugins and delegates checking to a separately installed, unchanged official ty. ty-extended is not a fork of ty.

uv add --dev ty-extended
uv run tyx check

For an isolated run:

uvx --from ty-extended tyx check

The package depends on official ty. Its executable and Python package use the separate names tyx and ty_extended; ty continues to run Astral's checker. Configure your editor to start tyx server for plugin support.

Official ty compatibility

ty-extended versions are independent of official Ty starting with 0.87.0. The 0.90.0 qualification records one unchanged optimized executable against every Ty release from 0.0.84 through 0.0.104: 378 passing CLI, editor, notebook and SDK gates. Platform CI also passes on Linux, macOS and Windows.

Updating official Ty within a compatible group does not require a ty-extended release. The dependency range is ty>=0.0.84,<0.1; future releases within it need compatibility checks before being described as tested. See the policy and evidence. Published-package acceptance is recorded separately from source and CI qualification.

Performance

The accepted optimization baseline averages 0.776 seconds across 30 runs of 7,082 files and 2,501 models, versus 0.237 seconds for bare official Ty and 7.451 seconds for MyPy. The comparison uses the same official Ty executable, 100 type assertions, and ordinary Python and ORM error controls.

The final controlled 30-run comparison averages 0.688 seconds, versus 0.693 seconds for the preceding executable and 0.212 seconds for native Ty on identical inputs. Dedicated hosted matrices pass all five shapes on Linux and macOS. The performance report retains every observation, earlier failed timing series and a slower fallback fixture. These measurements do not establish a universal worst-case bound. Published-package acceptance is recorded separately from source and CI checks.

The primary command is tyx. The package and repository remain ty-extended; ty-extended remains available as a compatibility command.

Plugins

Plugins are written in the Python subset supported by Monty and use the bundled ty_extended.plugin_sdk. No separate Python plugin interpreter or worker package is needed.

# ty.toml
[plugins]
enabled = true
auto-discover = true

ty-extended analyzes temporary copies and translates diagnostics, editor positions, and safe edits back to original files. The editor keeps its checker and plugin state between edits and supports unsaved buffers, notebooks and multiple workspaces.

flowchart LR
    project[Python project] --> extended[ty-extended]
    editor[CLI or editor] <--> extended
    extended <--> plugins[Python plugins]
    extended <-->|Analysis copies and public LSP| ty[Unchanged official ty]

django-ty provides Django ORM support. See installation and migration, compatibility, editor setup, plugin authoring, and runtime behavior.

Version policy

Starting with 0.87.0, ty-extended versions are independent of ty versions. A ty-extended release supports a group of official ty versions; ordinary ty updates do not require rebuilding or republishing ty-extended. The compatibility policy distinguishes tested releases from the dependency range and future upstream changes.

Versions through 0.86.x shipped a modified checker and installed the ty command. See the migration instructions before replacing that package. WASM plugins and external plugin workers belong to those historical releases; current plugins run in process.

Contributing and license

The implementation lives in crates/ty_extended/. See contributing, validation evidence, and the changelog. Report ty-extended or plugin issues in this repository.

MIT (LICENSE). Astral's checker is developed and released by Astral.

Metadata

Release files for ty-extended 0.91.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ty-extended 0.91.0
File Size Uploaded Provenance Actions
ty_extended-0.91.0.tar.gz 675.5 kB Without provenance Details for ty_extended-0.91.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ty-extended 0.91.0
File Actions
ty_extended-0.91.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for ty_extended-0.91.0-py3-none-win_arm64.whl
ty_extended-0.91.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for ty_extended-0.91.0-py3-none-win_amd64.whl
ty_extended-0.91.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for ty_extended-0.91.0-py3-none-musllinux_1_2_x86_64.whl
ty_extended-0.91.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for ty_extended-0.91.0-py3-none-musllinux_1_2_aarch64.whl
ty_extended-0.91.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for ty_extended-0.91.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
ty_extended-0.91.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for ty_extended-0.91.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
ty_extended-0.91.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for ty_extended-0.91.0-py3-none-macosx_11_0_arm64.whl
ty_extended-0.91.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for ty_extended-0.91.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 75.4 MB

Release files / ty_extended-0.91.0.tar.gz

Download URL ty_extended-0.91.0.tar.gz
Size 675.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3f6f5b196646a714fe414e8bb05dd556c74205df1bda314d815f587302e323a1
BLAKE2b-256 checksum
How to use checksums
a03c1f15825171874279c74bd3bca3f5a0709db6bb9aca3a4b147e4ffbe64d6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ty_extended-0.91.0-py3-none-win_arm64.whl

Download URL ty_extended-0.91.0-py3-none-win_arm64.whl
Size 9.3 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
f062b81014c9e25f0a94424896ebf6e1ae4e6d0b067d6597ba82470e47c05071
BLAKE2b-256 checksum
How to use checksums
201ccf2a8e4079269937f7c74170caf6b738a896942ca47310c82d60518876cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ty_extended-0.91.0-py3-none-win_amd64.whl

Download URL ty_extended-0.91.0-py3-none-win_amd64.whl
Size 10.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
de23dd36f61bd4d346dab80266960d18b03abe26e34d81fbf77419859133f61a
BLAKE2b-256 checksum
How to use checksums
b1ec0620df56e9e8ea4225228b299872a34e6ad7ff8c337724b37550fe0ca1ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ty_extended-0.91.0-py3-none-musllinux_1_2_x86_64.whl

Download URL ty_extended-0.91.0-py3-none-musllinux_1_2_x86_64.whl
Size 9.7 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
647603046127ee6b82fb668854ca711532aa8cb733dd46d5550b91f99f639163
BLAKE2b-256 checksum
How to use checksums
ca9fd0301afa7725b20e9d5d709a6e98e5dca8ce90da6bcce5252ad95ba54995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ty_extended-0.91.0-py3-none-musllinux_1_2_aarch64.whl

Download URL ty_extended-0.91.0-py3-none-musllinux_1_2_aarch64.whl
Size 9.0 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
2831b624dfdf35d44174bc5193050f4829341f748d3b22c08ea4ec89d8d9a059
BLAKE2b-256 checksum
How to use checksums
56ebc74cd075b87ffbec1c7854bd631a67f9202ce8e1d3fc73a5220375c02e24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ty_extended-0.91.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL ty_extended-0.91.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 9.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
df4058dbfed36b21212283fa6acea3c1db4559a69115ea33c4302678e3c4a123
BLAKE2b-256 checksum
How to use checksums
291d33e5f3bdb19d2c3733710f8e564086598c410270395bc3b20b60d4e1af8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ty_extended-0.91.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL ty_extended-0.91.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 9.0 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
eccc723a50992a676ad15cadb0ef1eefa9408fc79164730f366b6dc5f35cc42b
BLAKE2b-256 checksum
How to use checksums
cccfbc7223d43708fff4ac227a869fc5bf4b1a78449c67cd1c55c385ffe96696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ty_extended-0.91.0-py3-none-macosx_11_0_arm64.whl

Download URL ty_extended-0.91.0-py3-none-macosx_11_0_arm64.whl
Size 8.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0720dcd7ef85152cfa4f2e1cf767f623bcc34bff122b6d2427500e92ebb6692c
BLAKE2b-256 checksum
How to use checksums
374ce7f19ce3890ef6f235227255505a5fd60d773b4caa3950be98337a7ba534
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ty_extended-0.91.0-py3-none-macosx_10_12_x86_64.whl

Download URL ty_extended-0.91.0-py3-none-macosx_10_12_x86_64.whl
Size 9.3 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
aa708c5fb84a4b9b3eeae647323df3472b175346542a08b7b1805139450575bc
BLAKE2b-256 checksum
How to use checksums
d84d07e50987a7943e68da0584269658a35a86e9ede031397fe2e0bb2c8e929b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ty-extended 0.91.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.91.0 This release

9 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page