@@ -45,8 +45,8 @@ def test_zmax():
4545
4646def test_automatic_zmax_from_dtype ():
4747 dtypes_dict = {
48- np .uint8 : 2 ** 8 - 1 ,
49- np .uint16 : 2 ** 16 - 1 ,
48+ np .uint8 : 2 ** 8 - 1 ,
49+ np .uint16 : 2 ** 16 - 1 ,
5050 np .float : 1 ,
5151 bool : 255 ,
5252 }
@@ -195,7 +195,9 @@ def test_imshow_xarray_slicethrough():
195195
196196
197197def test_imshow_labels_and_ranges ():
198- fig = px .imshow ([[1 , 2 ], [3 , 4 ], [5 , 6 ]],)
198+ fig = px .imshow (
199+ [[1 , 2 ], [3 , 4 ], [5 , 6 ]],
200+ )
199201 assert fig .layout .xaxis .title .text is None
200202 assert fig .layout .yaxis .title .text is None
201203 assert fig .layout .coloraxis .colorbar .title .text is None
@@ -384,7 +386,11 @@ def test_facet_col(facet_col, binary_string):
384386@pytest .mark .parametrize ("binary_string" , [False , True ])
385387def test_animation_frame_grayscale (animation_frame , binary_string ):
386388 img = np .random .randint (255 , size = (10 , 9 , 8 )).astype (np .uint8 )
387- fig = px .imshow (img , animation_frame = animation_frame , binary_string = binary_string ,)
389+ fig = px .imshow (
390+ img ,
391+ animation_frame = animation_frame ,
392+ binary_string = binary_string ,
393+ )
388394 nslices = img .shape [animation_frame ]
389395 assert len (fig .frames ) == nslices
390396
@@ -393,7 +399,11 @@ def test_animation_frame_grayscale(animation_frame, binary_string):
393399@pytest .mark .parametrize ("binary_string" , [False , True ])
394400def test_animation_frame_rgb (animation_frame , binary_string ):
395401 img = np .random .randint (255 , size = (10 , 9 , 8 , 3 )).astype (np .uint8 )
396- fig = px .imshow (img , animation_frame = animation_frame , binary_string = binary_string ,)
402+ fig = px .imshow (
403+ img ,
404+ animation_frame = animation_frame ,
405+ binary_string = binary_string ,
406+ )
397407 nslices = img .shape [animation_frame ]
398408 assert len (fig .frames ) == nslices
399409
0 commit comments