ty 0.0.106 arrived on 18 November 2026. It is a maintenance release for Astral’s Rust type checker: one breaking change, seven bug fixes, two language-server fixes, and two configuration changes. The headline is small. The release keeps doing what the last few ty releases have done, which is to split broad diagnostics into narrower ones with their own severities, and to tighten the integration with uv. Teams running ty in CI should read the breaking change before upgrading, because a warning that used to be an error will now pass a build, and an error that used to hide inside a general rule now has its own name. The rest of the release is the kind of work that shows up as fewer false positives and a quieter editor.
ty is Astral’s static type checker and language server for Python, written in Rust. Astral is the team behind uv and Ruff. ty is still in beta and uses 0.0.x versioning, which means diagnostics and behaviour can change between releases. The project documentation is the place for commands and configuration, and the release notes are the place for what changed in each version. This article stays inside those two sources plus the pull request behind the breaking change.
The one breaking change: TypeIs gets two rules
The breaking change concerns TypeIs, the typing construct that lets a function tell a type checker what it has proven about a value. A function returning TypeIs[Bar] says that when it returns true, its argument is a Bar. Type checkers narrow the type of the argument after the call, the same way they narrow after isinstance(x, Bar).
Until this release, ty reported problems with such functions under a single rule, invalid-type-guard-definition. That rule did two different jobs. It reported an error when a type-guard function did not even have a positional parameter to narrow. It also reported an error when the T in TypeIs[T] was not assignable to the parameter type. The first job is a plain definition error. The second is a judgement call, and the release splits it out.
The split creates two new diagnostics. The first fires when ty can show that T is disjoint from the parameter input type, meaning the narrowed type can never match. The second fires when T is not disjoint from the input type but is still not assignable to it. The release notes name them disjoint-type-is-narrowing and suspicious-type-is-narrowing. The disjoint case stays an error by default. The suspicious case is now a warning by default.
The reasoning is in pull request #29949, written by AlexWaygood. The typing specification tells checkers to narrow consistently with isinstance(), and it also tells them that narrowing to a type that is not assignable to the input type is an error. Those two instructions point in different directions. Every checker accepts isinstance(x, Bar) inside a function that takes Foo, and narrows the result to something like Foo & Bar, even though Bar is not assignable to Foo. Yet the same checkers rejected the equivalent TypeIs[Bar] function, because the specification prohibits it. The pull request says the author tried several times to write documentation justifying the prohibition on its own terms and could not do it without falling back on the specification saying so.
The split is the compromise that follows from that. A TypeIs function that always narrows to Never is broken in a way nobody would defend, so it stays an error. A TypeIs function that narrows to something real but technically violates the assignability rule might be sound, so it drops to a warning. The practical effect for a codebase is narrow. If a project has no TypeIs functions with non-assignable targets, nothing changes. If it has one that always narrows to nothing, it still fails. If it has one that the checker now considers suspicious rather than invalid, CI goes from red to yellow on that file, and the team decides whether the narrowing is sound instead of the checker deciding for them.
There is one wrinkle worth recording. The pull request body uses two spellings for the new rules in different passages, disjoint-type-is-narrowing in the summary and disjoint-type-guard-narrowing later in the text, and the same for the suspicious rule. The release notes use the type-is forms. This article follows the release notes. Teams that want to set a level for either rule in configuration should check the name their installed ty reports, for example with ty explain rule, rather than copying a name from a blog post.
Seven inference fixes, and what they touch
The bug-fix list is seven items long, and most of them concern corners of type inference that only surface in generic code. They are worth reading as a group, because they show where ty’s inference still has sharp edges: generics, overloads, and gradual types.
The first fix avoids an exponential constraint search when inferring generic constructor arguments. In plain terms, some generic constructor calls made the checker do far more work than the code warranted. The fix caps that work. Code that used to take a long time to check should now finish faster, and code that timed out in CI may now pass.
The second fix checks fixed prefixes when assigning ParamSpec callables to a gradual Concatenate. ParamSpec and Concatenate are the typing tools for describing functions that take other functions plus extra arguments. Getting the prefix handling wrong meant valid assignments could be rejected or invalid ones accepted. The third fix stops a stack overflow when checking a generic base initializer, which is the kind of bug that turns a type error into a crash.
The fourth fix concerns variance inference for frozen Pydantic models on Python 3.12 and earlier. Frozen Pydantic models are immutable by construction, and immutability changes which way a type can vary. Getting variance wrong for them meant the checker could reject code that was safe, or accept code that was not. Readers who use Pydantic heavily should pay attention to this one, since the Pydantic v2 deep dive on this site covers how much of a typical web codebase now runs through Pydantic models.
The fifth fix preserves compatible overloads when partially binding a union argument. Overloads let one function have several signatures, and partial binding applies some arguments while leaving others open. The old behaviour could drop a valid overload during that step. The sixth fix preserves fixed parameters when comparing gradual callables, which is the same class of problem from the other side: when two callable types are compared and one of them is gradual, the fixed parts of the signature should survive the comparison.
The seventh item sits under other changes rather than bug fixes, but it belongs with this group: ty now handles TypedDict union pairs before other simplifications. A union of TypedDicts is a common shape in configuration and API code, and the order in which the checker simplifies those types changes the result it reports. Handling the pairs first is a correctness improvement for that shape.
They leave what ty checks unchanged and make the checking more accurate in code that was already in scope. That is the normal shape of a beta type checker maturing: the surface stays the same, and the corners get truer.
The editor gets quieter
Two of the changes concern the language server, which is the part of ty that talks to editors. The first makes ty report workspace diagnostics while scripts are still initializing. A script here is a single-file Python program with inline metadata, the kind of file that carries its own dependencies in a comment block. Previously, diagnostics for the rest of the workspace could wait until script initialization finished. Now they arrive while that work is still going on, so the editor shows results sooner instead of holding them back.
The second change syncs script environments when opening a file, specifically when the server runs with diagnosticMode: "openFilesOnly". In that mode the server only reports diagnostics for files the user has open. The fix makes sure the environment for a script is in sync at the moment its file opens, rather than lagging behind. Both changes are small. Editor settings and commands stay the same; diagnostics simply appear sooner, and the language server does not make the user wait for setup work before it starts being useful.
For teams that run ty only in CI and never in an editor, these two changes do nothing. For developers who live in VS Code or another editor with the ty extension, they remove two small delays. Editor settings and commands stay the same; only the timing of diagnostics changes.
Configuration: uv is now the script manager
The two configuration changes both concern scripts and uv. The first adds a project-manager.script = "uv" setting. It names uv as the project manager used for scripts. The second makes ty resolve script file settings independently of uv. Taken together, they mean the boundary between ty and uv for single-file scripts is now explicit in configuration instead of implicit in behaviour.
That boundary matters because scripts are the one place where ty and uv have to agree. A PEP 723 script carries its dependencies in its own header, and uv is the tool that builds the environment for it. ty needs to know which environment to check the script against, and it needs to read the script’s own settings without borrowing uv’s answers for everything. The new setting and the independent resolution are the mechanism for that.
The rest of ty’s configuration is unchanged. Settings live in [tool.ty] in pyproject.toml, or in a standalone ty.toml file, and ty.toml wins when both exist. Each diagnostic rule has a level of error, warn, or ignore, set per rule, with per-file overrides and # ty: ignore[rule] suppressions for single lines. There is no --strict preset. The documentation is the reference for the full list of settings, and the release notes are the reference for what changed in this version.
The practical advice follows from the versioning rather than from any single setting. ty is a 0.0.x beta, and its own documentation warns that diagnostics and behaviour can change between releases. Pin the version in projects and CI, and read the release notes on every upgrade. A rule that was a warning last month can be an error this month, and a diagnostic that did not exist last month can appear in a file nobody touched.
Running 0.0.106 in CI
Installing the release takes one of the usual routes. The standalone installer is a shell script fetched from Astral’s release host. The uv route is uv add --dev ty followed by uv run ty check, which pins the version for the whole team. A one-off check is uvx ty check, and a global install is uv tool install ty. The release artifacts carry GitHub Artifact Attestations, which can be verified with gh attestation verify against the astral-sh/ty repository.
Pinning is the part that matters most for CI. The release notes for 0.0.106 are short, but the pattern they belong to is worth stating plainly. Astral ships ty often, and each release can add diagnostics, split rules, or change severities. A CI job that installs ty@latest will eventually turn red on a file nobody changed, because a new rule fired. A job that pins ty==0.0.106 stays green until someone reads the notes and bumps the pin. The cost of pinning is a version bump every few weeks. The cost of not pinning is a red build with no code change behind it.
Our take is that 0.0.106 is a release to take without hesitation and without ceremony. The breaking change is narrow, the bug fixes are all in the direction of fewer false results, and the configuration changes only affect script setups. The one thing to do before upgrading is to search the codebase for TypeIs functions whose target type is not assignable to the parameter type. Those are the only functions this release treats differently, and the new warning tells the team exactly which ones they are. Everything else in the release is the checker getting more accurate at work it was already doing.
ty is one of three Rust tools from Astral, alongside uv and Ruff, and the three now share configuration surface: uv manages environments, Ruff lints and formats, ty checks types. The project-manager.script = "uv" setting is a small sign of that sharing becoming explicit. Readers who have not set up the trio yet can start from the Python code quality toolchain on this site, which covers the same tools from the setup side rather than the release side.
What to do this week
Upgrade the pin, run the check, and read the output. If the only new diagnostics are the suspicious TypeIs warnings, decide case by case whether each narrowing is sound and either keep the warning or silence it with a suppression comment. If a new error appears, it is almost certainly a disjoint narrowing, which means the function could never match, and the fix belongs in the code rather than in the configuration. If nothing new appears, the release cost nothing and bought seven inference fixes. That is a reasonable trade for a maintenance release.
Discussion
Leave a comment
No comments yet
Be the first to start the conversation.