1111 "mode, dest_modes" ,
1212 (
1313 ("L" , ["I" , "F" , "LA" , "RGB" , "RGBA" , "RGBX" , "CMYK" , "YCbCr" , "HSV" ]),
14- ("I" , ["L" , "F" ]), # Technically I32 can work for any 4x8bit storage.
14+ ("I" , ["L" , "F" ]), # Technically I;32 can work for any 4x8bit storage.
1515 ("F" , ["I" , "L" , "LA" , "RGB" , "RGBA" , "RGBX" , "CMYK" , "YCbCr" , "HSV" ]),
1616 ("LA" , ["L" , "F" ]),
1717 ("RGB" , ["L" , "F" ]),
@@ -29,38 +29,38 @@ def test_invalid_array_type(mode: str, dest_modes: list[str]) -> None:
2929 Image .fromarrow (img , dest_mode , img .size )
3030
3131
32- def test_invalid_array_size ():
32+ def test_invalid_array_size () -> None :
3333 img = hopper ("RGB" )
3434
3535 assert img .size != (10 , 10 )
3636 with pytest .raises (ValueError ):
3737 Image .fromarrow (img , "RGB" , (10 , 10 ))
3838
3939
40- def test_release_schema ():
40+ def test_release_schema () -> None :
4141 # these should not error out, valgrind should be clean
4242 img = hopper ("L" )
4343 schema = img .__arrow_c_schema__ ()
4444 del schema
4545
4646
47- def test_release_array ():
47+ def test_release_array () -> None :
4848 # these should not error out, valgrind should be clean
4949 img = hopper ("L" )
5050 array , schema = img .__arrow_c_array__ ()
5151 del array
5252 del schema
5353
5454
55- def test_readonly ():
55+ def test_readonly () -> None :
5656 img = hopper ("L" )
5757 reloaded = Image .fromarrow (img , img .mode , img .size )
5858 assert reloaded .readonly == 1
5959 reloaded ._readonly = 0
6060 assert reloaded .readonly == 1
6161
6262
63- def test_multiblock_l_image ():
63+ def test_multiblock_l_image () -> None :
6464 block_size = Image .core .get_block_size ()
6565
6666 # check a 2 block image in single channel mode
@@ -71,7 +71,7 @@ def test_multiblock_l_image():
7171 (schema , arr ) = img .__arrow_c_array__ ()
7272
7373
74- def test_multiblock_rgba_image ():
74+ def test_multiblock_rgba_image () -> None :
7575 block_size = Image .core .get_block_size ()
7676
7777 # check a 2 block image in 4 channel mode
@@ -82,7 +82,7 @@ def test_multiblock_rgba_image():
8282 (schema , arr ) = img .__arrow_c_array__ ()
8383
8484
85- def test_multiblock_l_schema ():
85+ def test_multiblock_l_schema () -> None :
8686 block_size = Image .core .get_block_size ()
8787
8888 # check a 2 block image in single channel mode
@@ -93,7 +93,7 @@ def test_multiblock_l_schema():
9393 img .__arrow_c_schema__ ()
9494
9595
96- def test_multiblock_rgba_schema ():
96+ def test_multiblock_rgba_schema () -> None :
9797 block_size = Image .core .get_block_size ()
9898
9999 # check a 2 block image in 4 channel mode
@@ -104,7 +104,7 @@ def test_multiblock_rgba_schema():
104104 img .__arrow_c_schema__ ()
105105
106106
107- def test_singleblock_l_image ():
107+ def test_singleblock_l_image () -> None :
108108 Image .core .set_use_block_allocator (1 )
109109
110110 block_size = Image .core .get_block_size ()
@@ -121,7 +121,7 @@ def test_singleblock_l_image():
121121 Image .core .set_use_block_allocator (0 )
122122
123123
124- def test_singleblock_rgba_image ():
124+ def test_singleblock_rgba_image () -> None :
125125 Image .core .set_use_block_allocator (1 )
126126 block_size = Image .core .get_block_size ()
127127
@@ -136,7 +136,7 @@ def test_singleblock_rgba_image():
136136 Image .core .set_use_block_allocator (0 )
137137
138138
139- def test_singleblock_l_schema ():
139+ def test_singleblock_l_schema () -> None :
140140 Image .core .set_use_block_allocator (1 )
141141 block_size = Image .core .get_block_size ()
142142
@@ -150,7 +150,7 @@ def test_singleblock_l_schema():
150150 Image .core .set_use_block_allocator (0 )
151151
152152
153- def test_singleblock_rgba_schema ():
153+ def test_singleblock_rgba_schema () -> None :
154154 Image .core .set_use_block_allocator (1 )
155155 block_size = Image .core .get_block_size ()
156156
0 commit comments