Skip to content

Commit cb88d47

Browse files
TYP: remove ignore from MPLPlot._plot (#40272)
1 parent c2e4a5d commit cb88d47

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas/plotting/_matplotlib/core.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -700,12 +700,8 @@ def _plot(cls, ax: Axes, x, y, style=None, is_errorbar: bool = False, **kwds):
700700
kwds["yerr"] = np.array(kwds.get("yerr"))
701701
return ax.errorbar(x, y, **kwds)
702702
else:
703-
# prevent style kwarg from going to errorbar, where it is
704-
# unsupported
705-
if style is not None:
706-
args = (x, y, style)
707-
else:
708-
args = (x, y) # type: ignore[assignment]
703+
# prevent style kwarg from going to errorbar, where it is unsupported
704+
args = (x, y, style) if style is not None else (x, y)
709705
return ax.plot(*args, **kwds)
710706

711707
def _get_index_name(self) -> Optional[str]:

0 commit comments

Comments
 (0)