Astral releases ty 1.0: what its stability policy means for CI
Learn what ty 1.0 promises for upgrades and how its checks, configuration and plugins differ from mypy and Pyright.
Astral released ty 1.0, its Rust-based Python type checker and language server, on December 1, 2026. The first stable release comes with a versioning policy: patch releases are limited to bug fixes, while minor releases can change type-checking behavior and introduce new errors.
For Python maintainers, that makes ty a candidate for a production CI gate, not a drop-in promise that the gate will stay unchanged. Teams can run it alongside mypy or Pyright while comparing results, but should pin the version and translate the settings and suppressions they depend on before replacing an existing checker.
What stability means for a gate
The 1.0 release notes say minor releases may report new type errors. A passing build on one minor version therefore is not guaranteed to pass on the next. The patch-release commitment is narrower than a promise of identical diagnostics: a bug fix can itself affect what a checker reports.
For an initial comparison, the repository documents running ty with uvx:
uvx ty check
Keep the existing mypy or Pyright gate in place and run ty separately at first. Compare both new errors and cases the current checker catches that ty does not. Review a version update as a CI change rather than automatically accepting a new minor release.
For projects with existing ty diagnostics, Astral documents a preview baseline feature: configure a baseline, then run ty check --update-baseline to record current diagnostics in a separate file. Committing that file lets CI flag new errors while the team works through existing ones. The release also offers ty check --add-ignore, which instead adds suppression comments to source files. The configuration reference covers baseline setup.
Migrating checks is not just changing a command
Astral’s migration guide maps individual mypy and Pyright diagnostics to ty rules. Their configuration is not interchangeable: ty rules are configured under [tool.ty.rules], with ignore, warn or error severity. Translate the settings your project relies on rather than treating its mypy or Pyright configuration as a ty policy.
The mapping is not always one-to-one. For example, the guide maps mypy’s union-attr to ty’s missing-union-attribute when only some union members lack an attribute, and to missing-attribute when all lack it. Ty-specific suppressions use # ty: ignore[rule], rather than mypy’s coded # type: ignore[code] or Pyright’s # pyright: ignore[reportXyz].
There are differences in coverage, too. Astral says ty has no mypy-style plugin system, although it includes built-in support for selected libraries, including Pydantic, Django, attrs and pytest. A project that depends on a mypy plugin should compare its results before removing that checker. The migration guide also notes that Pyright’s information severity has no direct ty equivalent; it suggests using warn instead.
Defaults differ as well. Ty checks unannotated function bodies unconditionally; unlike mypy, it has no equivalent switch for check_untyped_defs. Its guide recommends combining selected ty rules with Ruff’s annotation rules to approximate strict checking, rather than enabling every ty rule as an error.
Performance and editor use
Astral says its uncached command-line benchmarks on an M3 Max put ty fastest on 16 of 18 ecosystem projects. It also reports that migration at OpenAI produced a median 24-fold speedup and a 73% reduction in peak memory use. Those are Astral’s reported results, not a guarantee for a particular repository or a comparison of identical diagnostic coverage.
The company reports that ty passes 95% of files in Python’s typing conformance suite, versus 57% for mypy in its comparison; the suite is an imperfect proxy for real-world correctness. Results and migration effort will depend on a project’s types, dependencies and enabled checks.
For editor users, Astral offers a VS Code extension. Ty’s language server uses incremental analysis to update diagnostics as files are edited, so an editor trial can be separate from a decision to replace the CI gate.
Comments ()