aboutsummaryrefslogtreecommitdiff
path: root/devel/pytype/pkg-descr
blob: f6e707de7eda40e4d167537319f8dfc15b189cc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Pytype checks and infers types for your Python code - without requiring type
annotations. Pytype can:
- Lint plain Python code, flagging common mistakes such as misspelled attribute
  names, incorrect function calls, and much more, even across file boundaries.
- Enforce user-provided type annotations. While annotations are optional for
  pytype, it will check and apply them where present.
- Generate type annotations in standalone files ("pyi files"), which can be
  merged back into the Python source with a provided merge-pyi tool.

Pytype is a static analyzer; it does not execute the code it runs on.

Thousands of projects at Google rely on pytype to keep their Python code
well-typed and error-free.

WWW: https://google.github.io/pytype/
WWW: https://github.com/google/pytype