Correct way to annotate the return value type of `type`

后端 未结 0 1181
遇见更好的自我
遇见更好的自我 2021-01-16 14:56

Having the following code:

class Base: pass


def factory():
    return type("A", (Base,), {})
  1. What would be the correct anno
相关标签:
回答
  • 消灭零回复
提交回复
热议问题