From 540e0b0aa45412c2a6614d71c841fe576d153d1c Mon Sep 17 00:00:00 2001 From: Josiah Outram Halstead Date: Mon, 5 Dec 2022 13:36:30 +0000 Subject: [PATCH] PIL: fix image convert palette type (#9331) --- stubs/Pillow/PIL/Image.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Pillow/PIL/Image.pyi b/stubs/Pillow/PIL/Image.pyi index 118b95d26..3daac08eb 100644 --- a/stubs/Pillow/PIL/Image.pyi +++ b/stubs/Pillow/PIL/Image.pyi @@ -178,7 +178,7 @@ class Image: mode: _Mode | None = ..., matrix: _ConversionMatrix | None = ..., dither: int | None = ..., - palette: Literal[Palette.WEB] = ..., + palette: Palette | Literal[0, 1] = ..., colors: int = ..., ) -> Image: ... def quantize(