mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
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:
parent
fe85947f16
commit
e6785576b1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user