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

Appearance settings

Commit bba391d

Browse filesBrowse files
authored
Merge pull request #26490 from QuLogic/pil-image
Import PIL.Image explicitly over PIL
2 parents 5d5700a + 897549b commit bba391d
Copy full SHA for bba391d

File tree

6 files changed

+6
-5
lines changed
Filter options

6 files changed

+6
-5
lines changed

‎lib/matplotlib/axes/_axes.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.pyi
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_wx.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/image.py
+1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/image.pyi
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/widgets.pyi
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.