问题出在哪里。
我怎么才能修好它?我在努力:
1)停运
2)在python.analysis.diagnosticSeverityOverrides中将所有报告转换为“无”
我不明白我还能做些什么让这个错误消失。
发布于 2022-09-16 16:14:08
您可以使用typing模块来实现这一点:
from typing import Tuple
def test(x, y: Tuple(tuple, list)):
# do some things
return或者没有这样的模块:
def test(x, y: tuple(tuple, list)):
# do some things
returnhttps://stackoverflow.com/questions/73573893
复制相似问题