Skip to content

Commit

Permalink
TYP: remove ignore from MPLPlot._plot (#40272)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjayhawkins committed Mar 8, 2021
1 parent c2e4a5d commit cb88d47
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pandas/plotting/_matplotlib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,12 +700,8 @@ def _plot(cls, ax: Axes, x, y, style=None, is_errorbar: bool = False, **kwds):
kwds["yerr"] = np.array(kwds.get("yerr"))
return ax.errorbar(x, y, **kwds)
else:
# prevent style kwarg from going to errorbar, where it is
# unsupported
if style is not None:
args = (x, y, style)
else:
args = (x, y) # type: ignore[assignment]
# prevent style kwarg from going to errorbar, where it is unsupported
args = (x, y, style) if style is not None else (x, y)
return ax.plot(*args, **kwds)

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

0 comments on commit cb88d47

Please sign in to comment.