1
Vote

completions missing in matplotlib.pyplot

description

fig = plt.figure(figsize=(6, 3.2))
ax = fig.

<no completions> even though we know the return type of figure

comments

Zooba wrote Aug 9 at 2:04 AM

Actually, the problem is we don't know the return type because the docstring does not include a function spec. We should assume at least one overload exists if we don't have any better information.

Zooba wrote Aug 11 at 6:53 PM

We don't know the return type and the docstring is no help because figure is analysed from its source. We don't find the return type of figure because the path to get there (via the "current figure manager") is too convoluted for our analyzer.

Improving handling for this function or adding docstring scraping support are both too big for 2.1 at this stage.