PyType is a static type analyzer from Google. This talk tells you how it differs from the better known MyPy.
Age: a year
Page Views: 2798
Votes / View: 0
Wilson Score: 0.00
Pytype checks and infers types for your Python code - without requiring type annotations. Pytype can:
- Lint plain Python code, flagging common mistakes such as mispelled 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 providedmerge-pyi tool.
Pytype is a static analyzer, meaning 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.
For more information, check out the user guide or FAQ.