# python/mypy SLOC report

> 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.

## Repository size insights

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 | 1,165 | 241,852 | 197,920 | 16,356 | 27,576 |
| C Header | 59 | 31,279 | 21,549 | 6,388 | 3,342 |
| C | 89 | 19,544 | 15,450 | 2,119 | 1,975 |
| 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 | 2 | 70 | 51 | 10 | 9 |

Top language (Python 81.7%). Generated at 2026-08-26T18:36:22.503562324+00:00. Canonical report: https://octocounts.com/github/python/mypy

## Report FAQ

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

python/mypy has 310,011 total lines, including 242,271 code lines, 31,938 comment lines, and 35,802 blank lines.

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

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.

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

This OctoCounts report was generated from master at commit 1dab3c5f3d4c on 2026-08-26T18:36:22.503562324+00:00.

## Similar repository reports

- [HKUDS/DeepTutor](https://octocounts.com/github/HKUDS/DeepTutor) — Python, 240,939 code lines
- [ZhuLinsen/daily_stock_analysis](https://octocounts.com/github/ZhuLinsen/daily_stock_analysis) — Python, 244,713 code lines
- [alexgreensh/token-optimizer](https://octocounts.com/github/alexgreensh/token-optimizer) — Python, 239,419 code lines
- [jundot/omlx](https://octocounts.com/github/jundot/omlx) — Python, 249,575 code lines
- [K-Dense-AI/scientific-agent-skills](https://octocounts.com/github/K-Dense-AI/scientific-agent-skills) — Python, 233,599 code lines
- [rohitg00/ai-engineering-from-scratch](https://octocounts.com/github/rohitg00/ai-engineering-from-scratch) — Python, 256,041 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)
- [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)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
