📜  函数作为参数 tpye 提示 python 代码示例

📅  最后修改于: 2022-03-11 14:46:12.382000             🧑  作者: Mango

代码示例1
from typing import AnyStr, Callable

def my_function(name: AnyStr, func: Callable[[ParamType1, ParamType2, .., ParamTypeN], ReturnType]
) -> None:
    ...