# python/mypy SLOC report

> python/mypy: 252,532 code lines at commit 8674b65fd583, counted with tokei-15.0.0 on 2026-11-24. Saved result ca462f4a7d498198a26b60a6647d528ec3ed4c17203d6ec52cb4f162b45ed5ef.

Source: [python/mypy on GitHub](https://github.com/python/mypy) · counted commit [8674b65fd583](https://github.com/python/mypy/tree/8674b65fd5834622523d59297dbebdd66cba00e0)

python/mypy has 252,532 source lines of code out of 324,863 total lines across 1,381 files, counted with tokei from the master ref at commit 8674b65fd583 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving python/mypy to commit 8674b65fd583, 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 183 code lines per file. Python accounts for 81.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 1,169 | 250,053 | 204,730 | 17,088 | 28,235 |
| C Header | 59 | 32,806 | 22,758 | 6,553 | 3,495 |
| C | 94 | 22,179 | 17,686 | 2,358 | 2,135 |
| 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.1%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/python/mypy/commit/8674b65fd5834622523d59297dbebdd66cba00e0?reportId=ca462f4a7d498198a26b60a6647d528ec3ed4c17203d6ec52cb4f162b45ed5ef&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/8674b65fd5834622523d59297dbebdd66cba00e0?reportId=ca462f4a7d498198a26b60a6647d528ec3ed4c17203d6ec52cb4f162b45ed5ef&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 252,532 lines of code, plus 35,033 comment lines and 37,298 blank lines, for 324,863 total lines at commit 8674b65fd583 on November 24, 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 8674b65fd583, 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 8674b65fd583 on November 24, 2026.

## Similar repository reports

- [DennisMitchell/jellylanguage](https://octocounts.com/github/DennisMitchell/jellylanguage) — Python, 251,516 code lines
- [Snapintosh/Snapintosh](https://octocounts.com/github/Snapintosh/Snapintosh) — Python, 251,515 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,623 code lines
- [matplotlib/matplotlib](https://octocounts.com/github/matplotlib/matplotlib) — Python, 256,821 code lines
- [google/adk-python](https://octocounts.com/github/google/adk-python) — Python, 258,651 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
