title: How to get Python variable annotations?
body: <p>When defining a class/module with annotated fields, how can I get annotations as like in functions?</p>
  
  <pre><code>class Test:
    def __init__(self):
      self.x : int
  t = Test()
  </code></pre>
  
  <p>Now I need 'int' from <code>getattr(t,'x')</code></p>