title: How to check whether a variable is a class or not?
body: <p>I was wondering how to check whether a variable is a class (not an instance!) or not.</p>
  
  <p>I've tried to use the function <code>isinstance(object, class_or_type_or_tuple)</code> to do this, but I don't know what type would a class will have.</p>
  
  <p>For example, in the following code</p>
  
  <pre><code>class Foo: pass  
  isinstance(Foo, **???**) # i want to make this return True.
  </code></pre>
  
  <p>I tried to substitute  "<code>class</code>" with <strong>???</strong>, but I realized that <code>class</code> is a keyword in python.</p>