Skip to content

Commit 464747c

Browse files
committed
both
1 parent 05a7cc9 commit 464747c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PIL/ImageOps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ def sobel(image: Image.Image) -> Image.Image:
675675
for dy in (-1, 0, 1):
676676
for dx in (-1, 0, 1):
677677
v = image.getpixel((x + dx, y + dy))
678-
assert isinstance(v, float)
678+
assert isinstance(v, (int, float))
679679

680680
gx += v * Kx[dy + 1][dx + 1]
681681
gy += v * Ky[dy + 1][dx + 1]

0 commit comments

Comments
 (0)