As of 2026-08-26 (commit 1dab3c5f3d4c), python/mypy contains 310,011 total lines: 242,271 code, 31,938 comments, 35,802 blank, across 1,368 files in 17 languages (top: Python 81.7%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving python/mypy to commit 1dab3c5f3d4c, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a large codebase by counted code lines. Code represents 78.1% of all lines, comments represent 10.3%, and the repository averages 177 code lines per file. Python accounts for 81.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 1165 | 241852 | 197920 | 16356 | 27576 |
| C Header | 59 | 31279 | 21549 | 6388 | 3342 |
| C | 89 | 19544 | 15450 | 2119 | 1975 |
| C++ | 11 | 9927 | 6425 | 2225 | 1277 |
| TOML | 10 | 330 | 267 | 28 | 35 |
| XSL | 2 | 181 | 168 | 3 | 10 |
| Templ | 2 | 132 | 95 | 30 | 7 |
| INI | 3 | 103 | 86 | 6 | 11 |
| YAML | 1 | 83 | 75 | 0 | 8 |
| CSS | 1 | 104 | 70 | 10 | 24 |
| Shell | 6 | 134 | 70 | 41 | 23 |
| Autoconf | 2 | 70 | 51 | 10 | 9 |
Top language (Python 81.7%). Generated at 2026-08-26T18:36:22.503562324+00:00.
python/mypy has 310,011 total lines, including 242,271 code lines, 31,938 comment lines, and 35,802 blank lines.
OctoCounts resolved the public GitHub repository to commit 1dab3c5f3d4c, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit 1dab3c5f3d4c on 2026-08-26T18:36:22.503562324+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: