Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

pytype review

Free#7 of 25 in Static Type Checkers

A free, open-source checker for Python projects that want type inference without adding annotations first.

8.1/10Editor score
pytype8.1 Visit pytype

Reviewed by iTechGuides Editors · Editorial team · Updated Dec 2026

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.

pytype pros and cons

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

pytype fact sheet, pricing and score →

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