I am trying to add type hints for data returned by plt.subplots. That works fine for plt.Axes, but I can't seem to find a solution for Figure.
Any ideas what I could do?
An abbreviated version of my code is:
def draw_graph() -> Tuple[plt.Figure, plt.Axes]:
fig, ax = plt.subplots(figsize=(14,10))
return (fig, ax)
I get the message: "Figure" is not a known member of module Pylance