tmux-python / tmux-python/libtmux
Investigate ty type checker alongside mypy
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 127
- Avg merge
- 2h 13m
- Merged PRs (30d)
- 1
Description
Summary
ty is Astral's Rust-based Python type checker (beta). It's 10-100x faster than mypy, checks unannotated function bodies by default, and supports advanced features like intersection types and reachability analysis.
libtmux is well-positioned for ty adoption:
- No mypy plugins in use (ty's biggest gap — no plugin system)
- Only 9
type: ignorecomments across the codebase - Already uses Astral's ruff and uv tooling
- Strict mypy configuration with full type annotations
Goals
- Add ty as a dev dependency alongside mypy (not replacing it)
- Add ty configuration in
pyproject.tomland justfile targets - Add ty to CI as a non-blocking step
- Compare diagnostics: what ty catches vs mypy, false positives, speed
- Determine if ty can eventually displace mypy
Approach
- Gradual adoption: run both checkers in parallel
- Start with known-noisy rules suppressed, re-enable incrementally
- CI runs ty with
continue-on-error: trueso it doesn't block builds - Document findings in the PR for future reference
References
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing pyproject.toml, the justfile, and the repository's CI configuration, then read the ty documentation and run ty alongside mypy. Add the development dependency, configuration, targets, and non-blocking CI step described in the issue. Done means both checkers run, diagnostics and speed differences are documented, and the CI step does not block builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ci-cd, developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100