From bb812690e91fb74dfb6d80b5ddbe2a73fc6d40f1 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 12 Feb 2026 21:01:23 +1100 Subject: [PATCH] Updated type hints --- src/PIL/VtfImagePlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PIL/VtfImagePlugin.py b/src/PIL/VtfImagePlugin.py index d6fd7b460..c8346b025 100644 --- a/src/PIL/VtfImagePlugin.py +++ b/src/PIL/VtfImagePlugin.py @@ -115,7 +115,7 @@ class VTFHeader(NamedTuple): bumpmap_scale: float pixel_format: VtfPF mipmap_count: int - low_pixel_format: int + low_pixel_format: VtfPF low_width: int low_height: int depth: int = 0 @@ -126,7 +126,7 @@ BLOCK_COMPRESSED = (VtfPF.DXT1, VtfPF.DXT1_ONEBITALPHA, VtfPF.DXT3, VtfPF.DXT5) HEADER_V70 = "2HI2H4x3f4xfIbI2b" -def _get_texture_size(pixel_format: int, size: tuple[int, int]) -> int: +def _get_texture_size(pixel_format: VtfPF, size: tuple[int, int]) -> int: for factor, pixel_formats in ( (0.5, (VtfPF.DXT1, VtfPF.DXT1_ONEBITALPHA)), (1, (VtfPF.DXT3, VtfPF.DXT5, VtfPF.A8, VtfPF.I8)),