title: Python: why can isinstance return False, when it should return True?
body: <p>I'm currently in pdb trace to figure this out</p>
  
  <pre><code>ipdb&gt; isinstance(var, Type)
  False
  ipdb&gt; type(var)
  &lt;class 'module.Type'&gt;
  ipdb&gt; Type
  &lt;class 'module.Type'&gt;
  </code></pre>
  
  <p>Why can this happen?</p>
  
  <p>P. S. <code>isinstance(var, type(var))</code> returns <code>True</code> as expected</p>