python - 为什么我的 VScode 中的函数声明不匹配?
问题描述
我正在我的 VScode 中编写 python 脚本。
VScode 版本:1.43
操作系统:windows
蟒蛇扩展:2020.2.64397
我import torch
和使用torch.max()
我面临的问题是函数的声明显示不同。当我在函数名称上移动鼠标时,它显示不匹配的声明,我无法更改它!
此外,当我尝试go to the declaration
or peek declaration
or时go to the definition
,__init__.pyi会出现,但只有光标在开头。
我不知道它与什么有关。有什么我应该做或配置的,还是需要更多信息来解决它?
解决方案
推荐阅读
- angular - 角度动画延迟未执行
- java - NoSuchBeanDefinitionException:没有可用的“org.springframework.boot.web.reactive.error.ErrorAttributes”类型的合格bean:
- javascript - 将带有 nonce 的 CSP 标头添加到 Lambda Edge
- python - 是否可以连接 keras 序列实例?
- python - 使用 pandas 数据框创建年度投影数据
- datetime - 在日期表中的日期字段上使用 SUMX 时 OADate 无效
- deep-learning - 转换器的查询、键和值应该在通过线性层之前还是之后拆分?
- sql-server - 如何在gorm中为长时间运行的查询设置超时
- perforce - p4 unshelve 导致“重命名:...权限被拒绝”
- reactjs - apollo-link setContext 将所有标题转换为小写