python/mypy has 251,121 source lines of code out of 323,204 total lines across 1,377 files, counted with tokei from the master ref at commit 17f7a85d929a on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit 17f7a85d929a), python/mypy contains 323,204 total lines: 251,121 code, 34,903 comments, 37,180 blank, across 1,377 files in 17 languages (top language: Python 81.4%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving python/mypy to commit 17f7a85d929a, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a large codebase by counted code lines. Code represents 77.7% of all lines, comments represent 10.8%, and the repository averages 182 code lines per file. Python accounts for 81.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 1169 | 249555 | 204313 | 17044 | 28198 |
| C Header | 59 | 32348 | 22377 | 6524 | 3447 |
| C | 90 | 21476 | 17073 | 2301 | 2102 |
| 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 | 3 | 81 | 57 | 13 | 11 |
Top language: Python 81.4%. Generated on .
python/mypy: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
python/mypy has 251,121 lines of code, plus 34,903 comment lines and 37,180 blank lines, for 323,204 total lines at commit 17f7a85d929a on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 17f7a85d929a, 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 17f7a85d929a on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for python/mypy on this page — 251,121 code lines across 17 languages, counted by tokei.