# python/mypy SLOC report

> python/mypy: 251,121 code lines at commit 17f7a85d929a, counted with tokei-15.0.0 on 2026-11-16. Saved result 591dc28c5ed85d1610726cd2b5854ca685a4f969f7abe5dbf225bc4fc44ad901.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 1,169 | 249,555 | 204,313 | 17,044 | 28,198 |
| C Header | 59 | 32,348 | 22,377 | 6,524 | 3,447 |
| C | 90 | 21,476 | 17,073 | 2,301 | 2,102 |
| C++ | 11 | 9,927 | 6,425 | 2,225 | 1,277 |
| 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 |
| Makefile | 1 | 61 | 19 | 28 | 14 |
| Emacs Lisp | 1 | 22 | 18 | 2 | 2 |
| Dockerfile | 1 | 12 | 8 | 0 | 4 |
| Markdown | 10 | 8,377 | 0 | 6,396 | 1,981 |
| Plain Text | 7 | 278 | 0 | 252 | 26 |

Top language: Python 81.4%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/python/mypy/commit/17f7a85d929ade9bc7980915dd2085ddb3b99534?reportId=591dc28c5ed85d1610726cd2b5854ca685a4f969f7abe5dbf225bc4fc44ad901&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/python/mypy/commit/17f7a85d929ade9bc7980915dd2085ddb3b99534?reportId=591dc28c5ed85d1610726cd2b5854ca685a4f969f7abe5dbf225bc4fc44ad901&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does python/mypy have?

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.

### How was the python/mypy line count measured?

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.

### What commit was counted for python/mypy?

This OctoCounts report was generated from master at commit 17f7a85d929a on November 16, 2026.

## Similar repository reports

- [Snapintosh/Snapintosh](https://octocounts.com/github/Snapintosh/Snapintosh) — Python, 251,515 code lines
- [DennisMitchell/jellylanguage](https://octocounts.com/github/DennisMitchell/jellylanguage) — Python, 251,516 code lines
- [strands-agents/harness-sdk](https://octocounts.com/github/strands-agents/harness-sdk) — Python, 251,972 code lines
- [semantica-agi/semantica](https://octocounts.com/github/semantica-agi/semantica) — Python, 248,922 code lines
- [scikit-learn/scikit-learn](https://octocounts.com/github/scikit-learn/scikit-learn) — Python, 248,061 code lines
- [Ralph-Workflow/Ralph-Workflow](https://octocounts.com/github/Ralph-Workflow/Ralph-Workflow) — Python, 255,072 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [mypy vs Pyright](https://octocounts.com/compare/mypy-vs-pyright)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
