首页 > 解决方案 > 为什么我的 VScode 中的函数声明不匹配?

问题描述

我正在我的 VScode 中编写 python 脚本。

VScode 版本:1.43

操作系统:windows

蟒蛇扩展:2020.2.64397

VScode的详细版本信息

import torch和使用torch.max()

我面临的问题是函数的声明显示不同。当我在函数名称上移动鼠标时,它显示不匹配的声明,我无法更改它!

不同的声明

此外,当我尝试go to the declarationor peek declarationor时go to the definition__init__.pyi会出现,但只有光标在开头。

我不知道它与什么有关。有什么我应该做或配置的,还是需要更多信息来解决它?

标签: pythonvisual-studio-codevscode-settings

解决方案


推荐阅读