我有带有这些类型注释的 python 函数
def func_1() -> Optional[Sequence[str, List[str], str]]:
# do stuff
def func_2(a: str, b: List[str], c: str) -> None:
# do other stuff
为什么下面的代码在我调用 func_2 的那一行给出警告“预期类型列表 [str,Any]' 得到 'str'”?
result = func_1()
func_2(result[0], result[1], result[2])
这是否意味着我的类型检查器有问题,或者我的代码有问题?