Skip to content

[RFC]引入 mypy 对静态类型进行检查 #17

@whg517

Description

@whg517

动机

PEP-484 的新特性在社区应用越来越广泛。而且越来越多的工具都在新版本中逐步适配静态类型,并使用 mypy 进行检查。

这么做的目的是为了尽早的在编码阶段发现程序中可能出现的错误。

实施

  • 为仓库本身增加静态类型和 mypy 检查相关逻辑,如 tox 和 CI
  • 为项目模板增加静态类型和类型检查

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions