首页 > 解决方案 > mypy 没有拾取已安装的存根

问题描述

我已经安装了 boto3、boto3-stubs 和 mypy:

点文件:

"boto3" = "*"
boto3-stubs = {extras = ["ec2", "s3"], version = "*"}
mypy = "*"

但是运行mypy .给出了错误:

error: Skipping analyzing 'boto3': found module but no type hints or library stubs

我是否需要为 mypy 配置一些东西才能找到存根?

我正在使用安装在虚拟环境中的 python 3.8.6、mypy 0.790、boto3 1.16.59、boto3-stubs 1.16.59。

标签: pythonmypy

解决方案


推荐阅读