title: python class variable annotation
body: <p>I have a question concerning type annotations of class variables.</p>
  
  <pre><code>test: bool = "test"
  </code></pre>
  
  <p>the first line is not defined within a class and pycharm shows a warning that the type missmatches.</p>
  
  <pre><code>class test2:
      """t"""
      test: bool = "test"
  </code></pre>
  
  <p>now the same line within a class and pycharm says everything is correct. how does this work?</p>