谁能告诉我下面的[Pyright reportGeneralTypeIssues]错误是什么意思,因为当我运行程序时它运行正常...
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]
1条答案
按热度按时间tkqqtvp11#
reportGeneralTypeIssues [布尔值或字符串,可选]:生成或取消对常规类型不一致、不支持的操作、参数/参数不匹配等的诊断。这涵盖了其他规则未涵盖的所有基本类型检查规则。它不包括语法错误。此设置的默认值为“error”。