PytypePython 静态类型分析器

联合创作 · 2023-10-01 12:02

Pytype 是 Google 开源的 Python 静态类型分析器。

Pytype 可以:

  • 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 provided merge-pyi tool.
浏览 8
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报