Skip to content

Commit 0e3f51d

Browse files
authored
Merge pull request #8613 from python-pillow/renovate/mypy-1.x
Update dependency mypy to v1.14.0
2 parents 1146190 + 08e1f9e commit 0e3f51d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.ci/requirements-mypy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mypy==1.13.0
1+
mypy==1.14.0
22
IceSpringPySideStubs-PyQt6
33
IceSpringPySideStubs-PySide6
44
ipython

Tests/test_color_lut.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,12 @@ def test_numpy_sources(self) -> None:
388388

389389
table = numpy.ones((7 * 6 * 5, 3), dtype=numpy.float16)
390390
lut = ImageFilter.Color3DLUT((5, 6, 7), table)
391+
assert isinstance(lut.table, numpy.ndarray)
391392
assert lut.table.shape == (table.size,)
392393

393394
table = numpy.ones((7 * 6 * 5 * 3), dtype=numpy.float16)
394395
lut = ImageFilter.Color3DLUT((5, 6, 7), table)
396+
assert isinstance(lut.table, numpy.ndarray)
395397
assert lut.table.shape == (table.size,)
396398

397399
# Check application

src/PIL/ImageFilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def transform(
553553
ch_out = channels or ch_in
554554
size_1d, size_2d, size_3d = self.size
555555

556-
table = [0] * (size_1d * size_2d * size_3d * ch_out)
556+
table: list[float] = [0] * (size_1d * size_2d * size_3d * ch_out)
557557
idx_in = 0
558558
idx_out = 0
559559
for b in range(size_3d):

0 commit comments

Comments
 (0)