[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1006958: RFP: pytype -- Pytype checks and infers types for your Python code



Package: wnpp
Severity: wishlist

* Package name    : pytype
  Version         : 2022.3.8
  Upstream Author : Google <pytype@googlegroups.com>
* URL             : https://google.github.io/pytype/
* License         : Apache, with some code with BSD and MIT
  Programming Lang: Python
  Description     : Pytype checks and infers types for your Python code

  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.

It seems like a great help in Python development. It has a different
approach than mypy, and would complement it quite nicely.


Reply to: