Skip to content

Commit

Permalink
add typing to test_p_from_rgb_rgba()
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
Yay295 and hugovk authored Feb 26, 2024
1 parent fe85947 commit e678557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def _make_new(
("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)
Expand Down

0 comments on commit e678557

Please sign in to comment.