python - 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。
解决方案
推荐阅读
- java - java是如何实现栈的?
- mysql - 从 Azure 存储 MySQL 还原转储
- node.js - npm ERR cb() 在安装聚合物调制器时从未调用错误
- regex - 正则表达式在括号内获取特定单词
- python - Google Vision API:ModuleNotFoundError:找不到模块“google.oauth2”
- inno-setup - Inno Setup - 获取 Exec 的输出
- python - 如何压缩两个不同大小的列表?
- angular - 在父组件的值更改时更新子组件中的值
- angular - 如何使用 Angular 表单创建可编辑的 primeNG 表?
- wordpress - 提交评论导航到WordPress中的空白页面