add typing to test_p_from_rgb_rgba()

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Yay295 2024-02-26 08:47:30 -06:00 committed by GitHub
parent fe85947f16
commit e6785576b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -693,7 +693,7 @@ class TestImage:
("RGBA", (221, 238, 255, 255)),
),
)
def test_p_from_rgb_rgba(self, mode, color) -> None:
def test_p_from_rgb_rgba(self, mode: str, color: str | tuple[int, ...]) -> None:
im = Image.new("P", (100, 100), color)
expected = Image.new(mode, (100, 100), color)
assert_image_equal(im.convert(mode), expected)