Skip to content

Commit e678557

Browse files
Yay295hugovk
andauthored
add typing to test_p_from_rgb_rgba()
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent fe85947 commit e678557

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def _make_new(
693693
("RGBA", (221, 238, 255, 255)),
694694
),
695695
)
696-
def test_p_from_rgb_rgba(self, mode, color) -> None:
696+
def test_p_from_rgb_rgba(self, mode: str, color: str | tuple[int, ...]) -> None:
697697
im = Image.new("P", (100, 100), color)
698698
expected = Image.new(mode, (100, 100), color)
699699
assert_image_equal(im.convert(mode), expected)

0 commit comments

Comments
 (0)