Investigate ty type checker alongside mypy
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- ci-cd, developer-experience, tooling
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.
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
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 127
- Avg merge
- 2h 13m
- Merged PRs (30d)
- 1
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.
More from tmux-python/libtmux
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
tmux-python/libtmux#759 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tmux-python/libtmux#745 · 2 comments ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tmux-python/libtmux#744 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tmux-python/libtmux#731 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tmux-python/libtmux#654 ·
All issues in tmux-python/libtmux
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100