我有一个函数如下:
def a(): return b()
我想要的是:
def a() -> ReturnType[typeof b]: return b()
或...完全推断出返回类型的原始示例。
我搜索了 mypy 文档并查看了
typing