Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: Type checkers not findingAxes,Figure inmatplotlib.pyplot #26812

Closed as not planned
@Dr-Irv

Description

@Dr-Irv

Bug summary

We had code that did imports ofAxes andFigure as follows:

This used to work fine with type checkers like pyright and mypy prior to matplotlib 3.8. Now the type checkers complain.

Code for reproduction

frommatplotlibimportpyplotaspltplt.Axesplt.Figure

Actual outcome

pyright reports thatAxes andFigure are not exported from the modulepyplot

Expected outcome

No typing error.

Additional information

Fix would be to do something like this inpyplot.py

frommatplotlib.axesimportAxesasAxesfrommatploblib.figureimportFigureasFigure

This came up due to our CI forpandas-stubs that was testing typing of pandas against matplotlib imports

Operating system

Windows 10

Matplotlib Version

3.8

Matplotlib Backend

N/A

Python version

3.10

Jupyter version

N/A

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp