Spring 使用 Mypy 检查 30 万行代码,总结出 3 大痛点与 6 个技巧
作者:Charlie Marsh
译者:豌豆花下猫@Python猫
英文:Using Mypy in production at Spring (https://notes.crmarsh.com/using-mypy-in-production-at-spring)
在 Spring ,我们维护了一个大型的 Python 单体代码库(英:monorepo),用上了 Mypy 最严格的配置项,实现了 Mypy 全覆盖。简而言之,这意味着每个函数签名都是带注解的,并且不允许有隐式的 Any 转换。...
pythoncat.hashnode.dev5 min read