如何键入注释将 envvar 转换为整数?
我如何让 mypy 接受此代码? 尝试: 调试 = int(os.getenv("调试")) > 0 除了值错误: 调试=假 当前诊断为 mypy:“int”的参数 1 有