title: AttributeError: module 'matplotlib' has no attribute 'AxesSubplot'
body: <p>When looking at the <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.hist.html" rel="nofollow noreferrer">documentation</a> of the <code>pandas</code> method <code>.hist()</code>, it is written that it returns a <code>matplotlib.AxesSubplot</code> or <code>numpy.ndarray</code>. However when trying to type hint with <code>hist: matplotlib.AxesSubplot = df.hist()</code> it doesn't work (cf. error message in the title of the post).</p>
  <p>When printing <code>type()</code> Python returns: <code>Out[1]: matplotlib.axes._subplots.AxesSubplot</code>. Should I type hint my variable <code>hist</code> with this (<code>matplotlib.axes._subplots.AxesSubplot</code>)?</p>