Skip to content

[Bug]: Missing file pyplot.pyi for mypy typing #26919

Closed
@hhoppe

Description

@hhoppe

Bug summary

With mypy, plt.show() results in error: Call to untyped function "show" in typed context [no-untyped-call].

Code for reproduction

import matplotlib.pyplot as plt
plt.show()
# Then run `mypy`.

Actual outcome

error: Call to untyped function "show" in typed context [no-untyped-call]

Expected outcome

No error.

Additional information

No error was reported in earlier versions.
The error appears with matplotlib 3.8.0 and mypy 1.5.1.

Operating system

Ubuntu

Matplotlib Version

3.8.0

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions