I want to type hint the following function:
def get_obj_class(self) -> CLASS_TYPE:
return self.o.__class__
CLASS_TYPEshould denoteclasses.self.ocould be of any type determined at runtime.
On a similar note, if I have a function f(cls: CLASS_TYPE) which returns an instance of cls, is there a way to type hint the return value appropriately?