谁能告诉我以下[Pyright reporteneraltypeissues]错误是什么意思,因为当我运行程序时,它正常运行
任何人都可以告诉我以下[Pyright reporteneraltypeissues]错误是什么意思,因为当我运行程序时,它正常运行...
import pandas as pd
obj = pd.Series([4, 7, -5, 3])
obj.index = ['Bob', 'Steve', 'Jeff', 'Ryan']
[Pyright reportGeneralTypeIssues] Cannot assign member "index" for type "Series" [E]
Can anyone tell me what the following [Pyright reportGeneralTypeIssues] error means, because when I run the program it runs normally...
import pandas as pd
obj = pd.Series([4, 7, -5, 3])
obj.index = ['Bob', 'Steve', 'Jeff', 'Ryan']
[Pyright reportGeneralTypeIssues] Cannot assign member "index" for type "Series" [E]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DepationGeneralTypeissues [布尔或字符串,可选]:生成或抑制通用类型不一致,不支持操作,参数/参数不匹配等的诊断。这涵盖了其他规则未涵盖的所有基本类型检查规则。它不包括语法错误。此设置的默认值是“错误”。
reportGeneralTypeIssues [boolean or string, optional]: Generate or suppress diagnostics for general type inconsistencies, unsupported operations, argument/parameter mismatches, etc. This covers all of the basic type-checking rules not covered by other rules. It does not include syntax errors. The default value for this setting is "error".