title: Access class attributes in python from class method
body: <p>Assuming I have the following class:</p>
  <pre><code>class Foo:
   bar : str
   @classmethod
   def foobar(self): #self = cls
    print(??)
  </code></pre>
  <p>And I want to print the attribute <code>bar</code> in <code>foobar</code>.
  How do I do that? <code>self.bar</code> gives me the error:</p>
  <blockquote>
  <p><code>AttributeError: type object 'Foo' has no attribute 'bar'</code></p>
  </blockquote>
  <p>How do I do that?</p>