Skip to content

Commit bb81269

Browse files
committed
Updated type hints
1 parent 35c77d1 commit bb81269

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PIL/VtfImagePlugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class VTFHeader(NamedTuple):
115115
bumpmap_scale: float
116116
pixel_format: VtfPF
117117
mipmap_count: int
118-
low_pixel_format: int
118+
low_pixel_format: VtfPF
119119
low_width: int
120120
low_height: int
121121
depth: int = 0
@@ -126,7 +126,7 @@ class VTFHeader(NamedTuple):
126126
HEADER_V70 = "2HI2H4x3f4xfIbI2b"
127127

128128

129-
def _get_texture_size(pixel_format: int, size: tuple[int, int]) -> int:
129+
def _get_texture_size(pixel_format: VtfPF, size: tuple[int, int]) -> int:
130130
for factor, pixel_formats in (
131131
(0.5, (VtfPF.DXT1, VtfPF.DXT1_ONEBITALPHA)),
132132
(1, (VtfPF.DXT3, VtfPF.DXT5, VtfPF.A8, VtfPF.I8)),

0 commit comments

Comments
 (0)