4848 TEST_FILE_DX10_BC1_TYPELESS ,
4949 ),
5050)
51- def test_sanity_dxt1_bc1 (image_path ) -> None :
51+ def test_sanity_dxt1_bc1 (image_path : str ) -> None :
5252 """Check DXT1 and BC1 images can be opened"""
5353 with Image .open (TEST_FILE_DXT1 .replace (".dds" , ".png" )) as target :
5454 target = target .convert ("RGBA" )
@@ -96,7 +96,7 @@ def test_sanity_dxt5() -> None:
9696 TEST_FILE_BC4U ,
9797 ),
9898)
99- def test_sanity_ati1_bc4u (image_path ) -> None :
99+ def test_sanity_ati1_bc4u (image_path : str ) -> None :
100100 """Check ATI1 and BC4U images can be opened"""
101101
102102 with Image .open (image_path ) as im :
@@ -117,7 +117,7 @@ def test_sanity_ati1_bc4u(image_path) -> None:
117117 TEST_FILE_DX10_BC4_TYPELESS ,
118118 ),
119119)
120- def test_dx10_bc4 (image_path ) -> None :
120+ def test_dx10_bc4 (image_path : str ) -> None :
121121 """Check DX10 BC4 images can be opened"""
122122
123123 with Image .open (image_path ) as im :
@@ -138,7 +138,7 @@ def test_dx10_bc4(image_path) -> None:
138138 TEST_FILE_BC5U ,
139139 ),
140140)
141- def test_sanity_ati2_bc5u (image_path ) -> None :
141+ def test_sanity_ati2_bc5u (image_path : str ) -> None :
142142 """Check ATI2 and BC5U images can be opened"""
143143
144144 with Image .open (image_path ) as im :
@@ -162,7 +162,7 @@ def test_sanity_ati2_bc5u(image_path) -> None:
162162 (TEST_FILE_BC5S , TEST_FILE_BC5S ),
163163 ),
164164)
165- def test_dx10_bc5 (image_path , expected_path ) -> None :
165+ def test_dx10_bc5 (image_path : str , expected_path : str ) -> None :
166166 """Check DX10 BC5 images can be opened"""
167167
168168 with Image .open (image_path ) as im :
@@ -176,7 +176,7 @@ def test_dx10_bc5(image_path, expected_path) -> None:
176176
177177
178178@pytest .mark .parametrize ("image_path" , (TEST_FILE_BC6H , TEST_FILE_BC6HS ))
179- def test_dx10_bc6h (image_path ) -> None :
179+ def test_dx10_bc6h (image_path : str ) -> None :
180180 """Check DX10 BC6H/BC6HS images can be opened"""
181181
182182 with Image .open (image_path ) as im :
@@ -257,7 +257,7 @@ def test_dx10_r8g8b8a8_unorm_srgb() -> None:
257257 ("RGBA" , (800 , 600 ), TEST_FILE_UNCOMPRESSED_RGB_WITH_ALPHA ),
258258 ],
259259)
260- def test_uncompressed (mode , size , test_file ) -> None :
260+ def test_uncompressed (mode : str , size : tuple [ int , int ], test_file : str ) -> None :
261261 """Check uncompressed images can be opened"""
262262
263263 with Image .open (test_file ) as im :
@@ -359,7 +359,7 @@ def test_unsupported_bitcount() -> None:
359359 "Tests/images/unimplemented_pfflags.dds" ,
360360 ),
361361)
362- def test_not_implemented (test_file ) -> None :
362+ def test_not_implemented (test_file : str ) -> None :
363363 with pytest .raises (NotImplementedError ):
364364 with Image .open (test_file ):
365365 pass
@@ -381,7 +381,7 @@ def test_save_unsupported_mode(tmp_path: Path) -> None:
381381 ("RGBA" , "Tests/images/pil123rgba.png" ),
382382 ],
383383)
384- def test_save (mode , test_file , tmp_path : Path ) -> None :
384+ def test_save (mode : str , test_file : str , tmp_path : Path ) -> None :
385385 out = str (tmp_path / "temp.dds" )
386386 with Image .open (test_file ) as im :
387387 assert im .mode == mode
0 commit comments