pytype
pytype: A free, open-source checker for Python projects that want type inference without adding annotations first. Ranked #7 of 25 in Static Type Checkers by our editors (8.1/10); pricing: Free plan; best for python developers who want annotation-free type inference.
At a glance
- Editor score8.1 / 10
- PricingFree plan
- Best forPython developers who want annotation-free type inference
- Free planYes
- Paid fromFree
- Founded2012
- Facts checked23 Sep 2026
Where it wins
- Infers types in unannotated code and checks annotations where they exist.
- Analyzes code across files and narrows types based on control flow.
- Generates .pyi files and can merge their type information into source.
Where it doesn't
- Checks Python only, so it cannot cover a mixed-language codebase on its own.
- Windows use is through WSL.
- Python 3.12 is marked unsupported.
Our verdict on pytype
You don’t have to annotate a Python codebase before pytype can check it. The free, open-source command-line analyzer infers types where annotations are absent and checks the annotations you’ve already written. That makes it a practical choice for developers who want to catch misspelled attributes, incorrect calls, or incompatible operations without making annotation a prerequisite. You can run it locally on individual files or packages, so the scope can match what you want to check.
Type inference is useful here because it extends beyond a single file and can narrow a type based on the path the code takes through a branch. If you want to keep the inferred type information without changing the implementation, pytype can write it to standalone .pyi files. If you’d rather have annotations in the Python source, merge-pyi can bring that information back into the code. Those options let you keep checking code and adding annotations as separate decisions.
Install pytype with pip, configure analysis in pyproject.toml or setup.cfg, and run it in an automated testing workflow with GitHub Actions. It’s developed primarily for Linux, supports macOS, and runs on Windows through WSL. Check Python version compatibility before adopting it: Python 3.12 is marked unsupported. Pick pytype if you want a local checker for a compatible Python project with few or no annotations. Choose another tool if you need Python 3.12 support, native Windows operation, or a single checker that covers multiple languages.
Your product? Our editors can test pytype in depth and publish a review, labelled as paid · from $149/mo →
pytype pricing
pytype fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Supported languages | Not verified |
| Analysis scope | Not verified |
| IDE plugins | Not verified |
| CI/CD integration | Yes |
| Incremental analysis | Not verified |
| Strictness controls | Not verified |
| License model | Not verified |
| Deployment | Self-hosted |
| Platforms | macOS, Linux |
| Support | Community, Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 1 integrations: GitHub Actions |
| Pricing | Free plan |
| Website | google.github.io |
| Facts checked | 23 Sep 2026 |
pytype integrations
pytype lists 1 integrations on its own site.
- GitHub Actions
Alternatives to pytype
- TypeScriptA mature, free checker for TypeScript and JavaScript teams that need configurable strictness.9.4
- DialyzerChoose Dialyzer for inferred types and incremental checks in Erlang/OTP projects.9.2
- Hack typecheckerA free, open-source Hack checker with incremental analysis, IDE diagnostics and CI support.9.0
pytype vs the competition
- pytype vs TypeScript
- pytype vs Dialyzer
- pytype vs Hack typechecker
- pytype vs mypy
- pytype vs PHPStan
- pytype vs Flow
Compare pytype with any tool side by side →
Used pytype? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used pytype for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
pytype is listed in our Static Type Checkers directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/pytype/"><img src="https://www.itechguides.com/best/badge/pytype.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Dec 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update