title: Intellisense in VSCode and Python type hinting
body: <p>I have a question about intellisense in VSCode and type hinting in Python that I do not understand.</p>
  <p>If I add type hinting, I sometimes get completions and sometimes I do not and I don't fully understand why.</p>
  <p>For example. If I do, in a plain .py file, the following minimal reproducible example:</p>
  <pre><code>import matplotlib.pyplot as plt
  
  fig: plt.Figure = plt.figure(10, clear=True)
  ax: plt.Axes = plt.subplot()
  </code></pre>
  <p>I get completion as I expect for <code>ax</code> but not for <code>fig</code>, i.e., if I write <code>ax.</code> I get a popup with the available methods but not the same for <code>fig.</code> As far as I can tell, the types seems correct. How can I understand this behavior?</p>