Skip to content

Commit 104b93d

Browse files
authored
Merge pull request #26511 from meeseeksmachine/auto-backport-of-pr-26490-on-v3.8.x
Backport PR #26490 on branch v3.8.x (Import PIL.Image explicitly over PIL)
2 parents 6336979 + 6363c61 commit 104b93d

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

lib/matplotlib/axes/_axes.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import matplotlib.stackplot as mstack
3030
import matplotlib.streamplot as mstream
3131

3232
import datetime
33-
import PIL
33+
import PIL.Image
3434
from collections.abc import Callable, Sequence
3535
from typing import Any, Literal, overload
3636
import numpy as np

lib/matplotlib/backends/backend_wx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import weakref
1616

1717
import numpy as np
18-
import PIL
18+
import PIL.Image
1919

2020
import matplotlib as mpl
2121
from matplotlib.backend_bases import (

lib/matplotlib/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import warnings
1111

1212
import numpy as np
13+
import PIL.Image
1314
import PIL.PngImagePlugin
1415

1516
import matplotlib as mpl

lib/matplotlib/image.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ from typing import Any, BinaryIO, Literal
55

66
import numpy as np
77
from numpy.typing import ArrayLike, NDArray
8-
import PIL # type: ignore
8+
import PIL.Image
99

1010
import matplotlib.artist as martist
1111
from matplotlib.axes import Axes

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
from typing import Any, BinaryIO, Literal, TypeVar
8989
from typing_extensions import ParamSpec
9090

91-
import PIL
91+
import PIL.Image
9292
from numpy.typing import ArrayLike
9393

9494
from matplotlib.axis import Tick

lib/matplotlib/widgets.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from .lines import Line2D
77
from .patches import Circle, Polygon, Rectangle
88
from .text import Text
99

10-
import PIL
10+
import PIL.Image
1111

1212
from collections.abc import Callable, Collection, Iterable, Sequence
1313
from typing import Any, Literal

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy