Skip to content

Commit 62a8a69

Browse files
authored
Pillow: Add missing image modes to _Mode type alias in Image.pyi stub (issue #7956) (#7960)
1 parent 466f9c2 commit 62a8a69

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

stubs/Pillow/PIL/Image.pyi

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,32 @@ from ._imaging import (
1414
from .ImageFilter import Filter
1515
from .ImagePalette import ImagePalette
1616

17-
_Mode: TypeAlias = Literal["1", "CMYK", "F", "HSV", "I", "L", "LAB", "P", "RGB", "RGBA", "RGBX", "YCbCr"]
17+
_Mode: TypeAlias = Literal[
18+
"1",
19+
"BGR;15",
20+
"BGR;16",
21+
"BGR;24",
22+
"BGR;32",
23+
"CMYK",
24+
"F",
25+
"HSV",
26+
"I",
27+
"I;16",
28+
"I;16B",
29+
"I;16L",
30+
"I;16N",
31+
"L",
32+
"LA",
33+
"LAB",
34+
"La",
35+
"P",
36+
"PA",
37+
"RGB",
38+
"RGBA",
39+
"RGBX",
40+
"RGBa",
41+
"YCbCr",
42+
]
1843
_Resample: TypeAlias = Literal[0, 1, 2, 3, 4, 5]
1944
_Size: TypeAlias = tuple[int, int]
2045
_Box: TypeAlias = tuple[int, int, int, int]

0 commit comments

Comments
 (0)