我应该如何类型提示调用另一个 class 方法来构造 class 实例的通用 class 方法? [英]How should I type-hint a generic class method that calls another class method to construct an instance of the class?
我如何键入提示Python函数返回从超类派生的任何类的实例? [英]How do I type-hint that a Python function returns instance of any class derived from a superclass?