在 python 中,我有一个对象data
,它可能是任何对象。在我想要
的 vscode语句中会弹出 str 方法。在我想要
的 vscode语句中会弹出 dict,set 方法。v1, v2 = data # type: str, str
v1, v2
v1, v2 = data # type: dict, set
v1, v2
data = (object, object)
v1, v2 = data # type: str, str
v11, v22= data # type: dict, set
但它在pylance中显示错误
Type annotation not supported for this type of expression
Unexpected token at end of expression