Skip to content

Commit 4e26644

Browse files
committed
TYP: align ignore hints after line shifts; drop unused ignore
1 parent 1a6f47b commit 4e26644

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/plotting/_matplotlib/core.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,9 @@ def _make_plot(self, fig: Figure) -> None:
15921592
if self.color is not None:
15931593
kwds["color"] = self.color
15941594

1595-
style, kwds = self._apply_style_colors(colors, kwds, i, label)
1595+
style, kwds = self._apply_style_colors( # type: ignore[arg-type]
1596+
colors, kwds, i, label
1597+
)
15961598
kwds.update(self._get_errorbars(label=label, index=i))
15971599

15981600
label_str = self._mark_right_label(pprint_thing(label), index=i)
@@ -1637,8 +1639,7 @@ def _make_plot(self, fig: Figure) -> None:
16371639
if use_collection and segments:
16381640
if self.legend:
16391641
lc_colors = [
1640-
cast(mpl.lines.Line2D, h).get_color() # type: ignore[attr-defined]
1641-
for h in self.legend_handles
1642+
cast(mpl.lines.Line2D, h).get_color() for h in self.legend_handles
16421643
]
16431644
else:
16441645
# no legend - just follow the default colour cycle

0 commit comments

Comments
 (0)