Repository navigation
Conversation
why: The type check should use the supported Python version for each CI job and include maintained Python tooling. what: - Pin ty and refresh its lock entry under a package-specific cooldown exception. - Check the repository from its root and select the target interpreter version in CI.
tony
added a commit
that referenced
this pull request
Nov 29, 2026
why: Contributors need the supported checker and its scope in the release notes. what: - Summarize the migration and link its pull request.
why: Contributors need a consistent way to resolve typing ambiguities while preserving the contract callers rely on. what: - Describe the limited uses of object and Any at input boundaries. - Check precise signatures against supported callers, misuse and downstream inference.
why: Contributors need the supported checker and its scope in the release notes. what: - Summarize the migration and link its pull request.
35 of 38 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #69.
Check all maintained Python files with ty
The previous ty 0.0.110 configuration selected the package, scripts and tests. The new root check also covers the two documentation files and the root pytest configuration. The 51 Python files are byte-identical across the two revisions. The lock update changes only ty. The existing Linux, Windows and macOS checks now select the Python version of their respective jobs. Migration issue · Previous roots · CI matrix
Both the native trunk command and the expanded 51-file trunk control passed. On Python 3.12 and 3.15, the candidate gate reported an injected invalid assignment in each of the 51 files, then passed after restoration. Ruff lint and formatting passed. The local suite ran 257 passing tests with one skip on each interpreter, using isolated tmux sockets. The benchmark compares synthetic strict mypy 2.4.1 with ty 0.0.113 on all 51 unchanged files. Mypy reported 29 errors in 13 files and ty reported none.
Type-checker benchmark
The benchmark uses a synthetic mypy configuration. Its timings apply to the supplied benchmark configuration. Both tools checked the same 51 candidate files with Python 3.12.13. Both targeted Python 3.12. All measured files are byte-identical across the two source snapshots. The two series do not establish a clean-check speed ratio. Mypy settings · Ty settings · Candidate lock
The table gives mean wall time and sample standard deviation across 8 fresh CLI processes per cell. mypy 2.4.1 exited 1 (16/16). ty 0.0.113 exited 0 (16/16). hyperfine 1.20.0 timed the installed checker executables on Linux x86_64. Mypy used no configured plugins.
Cold runs cleared the checker cache before each sample. Repeat runs followed two untimed warmups. Mypy reused its module cache. Ty wrote no files under its isolated cache root, so its repeat timings measure another fresh process. The OS page cache stayed warm. Setup and diagnostics ran outside the timed commands.
Synthetic mypy configuration
Diagnostics
no-redefat src/libvt/parser.py, line 760.comparison-overlapat src/libvt/input.py, line 954.var-annotatedat src/libvt/terminal.py, line 250.arg-typeat src/libvt/terminal.py, line 250.no-any-returnat src/libvt/terminal.py, line 287.attr-definedat src/libvt/terminal.py, line 287.call-overloadat src/libvt/terminal.py, line 4215.func-returns-valueat scripts/benchmark.py, line 708.The examples show 8 distinct checker/rule combinations. The totals include all reported locations.
Samples
File manifest
conftest.pydocs/__init__.pydocs/conf.pyscripts/__init__.pyscripts/bench_vt.pyscripts/benchmark.pyscripts/generate_ucd.pysrc/libvt/__about__.pysrc/libvt/__init__.pysrc/libvt/__main__.pysrc/libvt/_grid.pysrc/libvt/_ucd.pysrc/libvt/aio.pysrc/libvt/codec.pysrc/libvt/config.pysrc/libvt/contrib/__init__.pysrc/libvt/contrib/tmux/__init__.pysrc/libvt/contrib/tmux/capture.pysrc/libvt/contrib/tmux/control.pysrc/libvt/contrib/tmux/profile.pysrc/libvt/events.pysrc/libvt/exc.pysrc/libvt/graphics.pysrc/libvt/input.pysrc/libvt/modes.pysrc/libvt/parser.pysrc/libvt/profiles.pysrc/libvt/pytest_plugin.pysrc/libvt/screen.pysrc/libvt/status.pysrc/libvt/style.pysrc/libvt/terminal.pysrc/libvt/testing.pytests/__init__.pytests/_ghostty_vt.pytests/test_aio.pytests/test_benchmark.pytests/test_codec.pytests/test_differential_ghostty.pytests/test_exc.pytests/test_graphics.pytests/test_input.pytests/test_libvt.pytests/test_parser.pytests/test_pyte_compat.pytests/test_screen.pytests/test_status.pytests/test_terminal.pytests/test_testing.pytests/test_tmux.pytests/test_ucd.pyReproduce
Run from a clone containing both revisions with bash, uv 0.12.0, hyperfine 1.20.0 and the utilities used below.
The Python typing policy describes how to check a proposed signature against downstream callers and when an open input type is appropriate.
Hosted checks
Checks on 55fa34799a7e
Skipped — release.
Passed — test (3.15) · test (3.12) · test-windows · test-macos · test (3.14) · build (3.14) · test (3.13) · test-pypy.