Python type hint for (any) class : <p>I want to type hint the following function:</p>

<pre><code>def get_obj_class(self) -&gt; *class*:
  return self.o.__class__
</code></pre>

<p><code>self.o</code> could be of any type, it's determined at runtime.</p>

<p><code>*class*</code> obviously is not the answer here, because it's invalid syntax. But what <em>is</em> the right answer? I could not find any documentation on this, any help is appreciated.</p>

<hr>

<p>On a similar note, if I have a function <code>f(cls: *class*)</code> which returns an instance of <code>cls</code>, is there a way to type hint the return value appropriately?</p>
