@@ -244,7 +244,7 @@ def _build_annotation_text(
244244 lines .append (f"<b>{ table .title } :</b>" )
245245 headers = list (table .headers )
246246 for row in table .data :
247- for header , value in zip (headers , row ):
247+ for header , value in zip (headers , row , strict = False ):
248248 if isinstance (value , float ):
249249 formatted = (
250250 f"{ value :.3g} "
@@ -264,7 +264,7 @@ def _build_annotation_text(
264264 coords = (
265265 geometry .coords [0 ] if geometry .coords .ndim > 1 else geometry .coords
266266 )
267- for lbl , val in zip (coord_labels , coords ):
267+ for lbl , val in zip (coord_labels , coords , strict = False ):
268268 if isinstance (val , float ):
269269 formatted = (
270270 f"{ val :.3g} "
@@ -474,7 +474,11 @@ def _add_image_roi_shapes(
474474 # Close the polygon
475475 xs = list (points [:, 0 ]) + [points [0 , 0 ]]
476476 ys = list (points [:, 1 ]) + [points [0 , 1 ]]
477- path = "M " + " L " .join (f"{ x } ,{ y } " for x , y in zip (xs , ys )) + " Z"
477+ path = (
478+ "M "
479+ + " L " .join (f"{ x } ,{ y } " for x , y in zip (xs , ys , strict = False ))
480+ + " Z"
481+ )
478482 fig .add_shape (
479483 type = "path" ,
480484 path = path ,
@@ -1014,7 +1018,7 @@ def _build_signal_figure(self) -> go.Figure:
10141018 # Build interleaved arrays: (x, baseline) -> (x, y) -> None gap
10151019 xs : list = []
10161020 ys : list = []
1017- for xi , yi in zip (x , y ):
1021+ for xi , yi in zip (x , y , strict = False ):
10181022 xs .extend ([xi , xi , None ])
10191023 ys .extend ([baseline , yi , None ])
10201024 fig .add_trace (
@@ -1431,7 +1435,7 @@ def _build_figure(self) -> go.Figure:
14311435 baseline = float (obj .get_metadata_option ("baseline" ))
14321436 xs : list = []
14331437 ys : list = []
1434- for xi , yi in zip (x , y ):
1438+ for xi , yi in zip (x , y , strict = False ):
14351439 xs .extend ([xi , xi , None ])
14361440 ys .extend ([baseline , yi , None ])
14371441 fig .add_trace (
@@ -1770,7 +1774,9 @@ def _build_figure(self) -> go.Figure:
17701774 all_tbl_results : list = []
17711775 all_geo_results : list = []
17721776
1773- for idx , (img , result ) in enumerate (zip (self ._objs , results_list )):
1777+ for idx , (img , result ) in enumerate (
1778+ zip (self ._objs , results_list , strict = False )
1779+ ):
17741780 row = idx // ncols + 1
17751781 col = idx % ncols + 1
17761782
0 commit comments