Commit de4750d
committed
Replace Mypy with Ty type checker
- Replace mypy dependency with ty (>=0.0.1a10) in pyproject.toml
- Update GitHub Actions workflow from mypy.yml to ty.yml
- Configure ty with basic ty.toml configuration file
- Remove mypy.ini configuration file
- Update workflow to use ty check command with appropriate flags
Performance comparison:
- Mypy: 0.651s (found 8 errors in 4 files, checked 5 source files)
- Ty: 0.292s (all checks passed on same files)
- Ty shows ~55% performance improvement on sample files
Type checking comparison on full codebase:
- Mypy: Found 73 errors in 25 files (checked 93 source files)
- Ty: Found 49 diagnostics (more focused error reporting)
Ty is an experimental Rust-based type checker by Astral (creators of Ruff and uv)
that aims to be significantly faster than existing Python type checkers.1 parent d4e84fd commit de4750d
5 files changed
Lines changed: 1109 additions & 1202 deletions
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 41 | + | |
45 | 42 | | |
46 | 43 | | |
47 | | - | |
48 | | - | |
| 44 | + | |
| 45 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments