Skip to content

Commit 08e1f9e

Browse files
committed
Lint fixes
1 parent 3d0f438 commit 08e1f9e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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)