google

pytype: Check Python Types with Static Analysis

pytype is a static type analyzer for Python, built around bytecode-based analysis and type inference. It checks Python code using inferred types and annotations, but its owners have archived the read-only project and say Python 3.12 is its last supported version.

Stars
5k
Forks
289
Stars, last 30 days
-2
Last commit
8 months ago
Contributors
95

Our take

Archivedarchived by its owners on GitHub, read-only

Health score

33/100

How it is scored
Activity
19
Community
70
Issues
21
Pull requests
20

-2 stars in the last 30 days

  • More contributors than 77% of the projects we track

pytype offers a distinctive inference-based approach to Python type checking, but its archived, read-only status makes it a poor choice for new projects that need ongoing support.

Good fit if

  • You are maintaining an existing pytype setup for Python 3.12 or earlier.
  • You want to evaluate bytecode-based type inference for a bounded, non-critical use.
  • You can work with the project as-is: it has a broad contributor base, without measured dependence on one contributor.

Look elsewhere if

  • You need support for Python versions after 3.12 or ongoing fixes and releases.
  • Your workflow depends on active issue handling or merged changes, neither of which is recorded in the recent health data.
  • You need a clearly asserted license before adopting a tool; the repository metadata does not identify one.
All health signals
Last commit2026-03-16 (8 months ago)
Commits, last 90 days0
Releases, last 12 months0
Contributors95 (top contributor: 58% of commits)
Issues closed, last 90 days0
Pull requests merged, last 90 days0
Project age11 years

Checked on 2026-10-31 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

5,033

Forks

288

Change since Nov 23, 2026: 0 stars·0 forks

Overview

pytype is a static type analyzer for Python, built around a bytecode-based analysis engine that infers types and checks code. It aims to catch type problems before runtime, including in code that does not have complete annotations.

It is intended for Python developers who want static checks alongside or in place of relying solely on runtime testing. The project’s owners say Python 3.12 is the last supported version, so it is most relevant to existing codebases that fit that boundary rather than teams starting a long-term adoption.

Key Features

  • Infers types from Python code, including code without complete type annotations.
  • Checks code using inline type annotations.
  • Uses bytecode-based analysis to inspect Python programs.
  • Supports working with interface files, a part of the project’s original approach.
  • Has participated in the Python typing ecosystem, including collaboration on typeshed.

Use Cases

  • Python teams maintaining code that targets Python 3.12 or earlier and want static type feedback.
  • Developers assessing inferred types in code with few or no inline annotations.
  • Maintainers of existing pytype-based checks who need to understand the project’s support boundary.

What you need

Detected in the repository

  • Python (from pyproject.toml)
  • Automated checks on GitHub Actions

Getting Started

See the README for installation and usage instructions. Check that your Python version is within the project’s stated support boundary before adopting it.

License in Plain Words

No standard license was detected. Without a license, the default copyright rules apply: you may read the code, but not reuse it. Check the repository or ask the authors.

Alternatives

  • pyre-check: Pyre is an incremental Python type checker, while pytype centers bytecode-based analysis and inference; Pyre's repository is archived.
  • mypy: Mypy checks Python types primarily from annotations, while pytype uses bytecode-based analysis and infers types.
ProjectLanguageLicenseStarsStatus
pytypePython–5kArchived
pyre-checkOCamlMIT7.2kArchived
mypyPythonOther20.7kActive

Considerations

The repository is archived and read-only. The health data records no commits or releases in the recent periods measured, and no recent issue closures or merged pull requests. Although the repository has many contributors and is not flagged as concentrated around one person, that does not change its inactive, archived status. The project’s own notice limits supported Python versions to 3.12, and the repository metadata reports no asserted license.

Found this useful?

Share it with someone who would like pytype.

Comparisons