@@ -817,7 +817,7 @@ def _adorn_subplots(self, fig: Figure) -> None:
817
817
f"number of columns = { self .nseries } "
818
818
)
819
819
820
- for ax , title in zip (self .axes , self .title ):
820
+ for ax , title in zip (self .axes , self .title , strict = False ):
821
821
ax .set_title (title )
822
822
else :
823
823
fig .suptitle (self .title )
@@ -1216,7 +1216,7 @@ def _get_errorbars(
1216
1216
) -> dict [str , Any ]:
1217
1217
errors = {}
1218
1218
1219
- for kw , flag in zip (["xerr" , "yerr" ], [xerr , yerr ]):
1219
+ for kw , flag in zip (["xerr" , "yerr" ], [xerr , yerr ], strict = True ):
1220
1220
if flag :
1221
1221
err = self .errors [kw ]
1222
1222
# user provided label-matched dataframe of errors
@@ -1457,7 +1457,7 @@ def _get_color_mapping(self, c_values: Series) -> dict[str, np.ndarray]:
1457
1457
cmap = mpl .colormaps .get_cmap (self .colormap )
1458
1458
colors = cmap (np .linspace (0 , 1 , n_colors )) # RGB tuples
1459
1459
1460
- return dict (zip (unique , colors ))
1460
+ return dict (zip (unique , colors , strict = True ))
1461
1461
1462
1462
def _get_norm_and_cmap (self , c_values , color_by_categorical : bool ):
1463
1463
c = self .c
@@ -2178,7 +2178,10 @@ def blank_labeler(label, value):
2178
2178
# Blank out labels for values of 0 so they don't overlap
2179
2179
# with nonzero wedges
2180
2180
if labels is not None :
2181
- blabels = [blank_labeler (left , value ) for left , value in zip (labels , y )]
2181
+ blabels = [
2182
+ blank_labeler (left , value )
2183
+ for left , value in zip (labels , y , strict = True )
2184
+ ]
2182
2185
else :
2183
2186
blabels = None
2184
2187
results = ax .pie (y , labels = blabels , ** kwds )
@@ -2197,7 +2200,7 @@ def blank_labeler(label, value):
2197
2200
2198
2201
# leglabels is used for legend labels
2199
2202
leglabels = labels if labels is not None else idx
2200
- for _patch , _leglabel in zip (patches , leglabels ):
2203
+ for _patch , _leglabel in zip (patches , leglabels , strict = True ):
2201
2204
self ._append_legend_handles_labels (_patch , _leglabel )
2202
2205
2203
2206
def _post_plot_logic (self , ax : Axes , data ) -> None :
0 commit comments