Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Backport PR #26490 on branch v3.8.x (Import PIL.Image explicitly over PIL) #26511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import matplotlib.stackplot as mstack
import matplotlib.streamplot as mstream

import datetime
import PIL
import PIL.Image
from collections.abc import Callable, Sequence
from typing import Any, Literal, overload
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/backend_wx.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import weakref

import numpy as np
import PIL
import PIL.Image

import matplotlib as mpl
from matplotlib.backend_bases import (
Expand Down
1 change: 1 addition & 0 deletions lib/matplotlib/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import warnings

import numpy as np
import PIL.Image
import PIL.PngImagePlugin

import matplotlib as mpl
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/image.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from typing import Any, BinaryIO, Literal

import numpy as np
from numpy.typing import ArrayLike, NDArray
import PIL # type: ignore
import PIL.Image

import matplotlib.artist as martist
from matplotlib.axes import Axes
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
from typing import Any, BinaryIO, Literal, TypeVar
from typing_extensions import ParamSpec

import PIL
import PIL.Image
from numpy.typing import ArrayLike

from matplotlib.axis import Tick
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/widgets.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ from .lines import Line2D
from .patches import Circle, Polygon, Rectangle
from .text import Text

import PIL
import PIL.Image

from collections.abc import Callable, Collection, Iterable, Sequence
from typing import Any, Literal
Expand Down