Skip to content

Commit

Permalink
mypy fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Nov 8, 2023
1 parent 51c0403 commit f449fb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pandas/plotting/_matplotlib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
TYPE_CHECKING,
Any,
Literal,
cast,
final,
)
import warnings

import matplotlib as mpl
from matplotlib.axes import Axes
import numpy as np

from pandas.errors import AbstractMethodError
Expand Down Expand Up @@ -81,7 +83,6 @@

if TYPE_CHECKING:
from matplotlib.artist import Artist
from matplotlib.axes import Axes
from matplotlib.axis import Axis
from matplotlib.figure import Figure

Expand Down Expand Up @@ -563,7 +564,8 @@ def _axes_and_fig(self) -> tuple[Sequence[Axes], Figure]:
elif self.logy == "sym" or self.loglog == "sym":
[a.set_yscale("symlog") for a in axes]

return axes, fig
axes_seq = cast(Sequence[Axes], axes)
return axes_seq, fig

@property
def result(self):
Expand Down

0 comments on commit f449fb2

Please sign in to comment.