Pytype是 Google开源的Python静态类型分析器。
Pytype可以:
LintplainPythoncode,flaggingcommonmistakessuchasmispelledattributenames,incorrectfunctioncalls,and muchmore,evenacrossfileboundaries.Enforceuser-provided typeannotations.Whileannotationsareoptionalforpytype,itwillcheckandapplythemwherepresent.Generatetypeannotationsinstandalonefiles("pyifiles"),whichcanbemergedbackintothePythonsourcewithaprovided merge-pyi tool.
评论