diff --git a/xarray/plot/utils.py b/xarray/plot/utils.py index 7422db4c5d2..5d08826b415 100644 --- a/xarray/plot/utils.py +++ b/xarray/plot/utils.py @@ -1294,16 +1294,14 @@ def _infer_meta_data(ds, x, y, hue, hue_style, add_guide, funcname): def _parse_size( data: None, norm: tuple[float | None, float | None, bool] | Normalize | None, -) -> None: - ... +) -> None: ... @overload def _parse_size( data: DataArray, norm: tuple[float | None, float | None, bool] | Normalize | None, -) -> pd.Series: - ... +) -> pd.Series: ... # copied from seaborn @@ -1448,12 +1446,10 @@ def data_is_numeric(self) -> bool: return self._data_is_numeric @overload - def _calc_widths(self, y: np.ndarray) -> np.ndarray: - ... + def _calc_widths(self, y: np.ndarray) -> np.ndarray: ... @overload - def _calc_widths(self, y: DataArray) -> DataArray: - ... + def _calc_widths(self, y: DataArray) -> DataArray: ... def _calc_widths(self, y: np.ndarray | DataArray) -> np.ndarray | DataArray: """ @@ -1475,12 +1471,10 @@ def _calc_widths(self, y: np.ndarray | DataArray) -> np.ndarray | DataArray: return widths @overload - def _indexes_centered(self, x: np.ndarray) -> np.ndarray: - ... + def _indexes_centered(self, x: np.ndarray) -> np.ndarray: ... @overload - def _indexes_centered(self, x: DataArray) -> DataArray: - ... + def _indexes_centered(self, x: DataArray) -> DataArray: ... def _indexes_centered(self, x: np.ndarray | DataArray) -> np.ndarray | DataArray: """ @@ -1852,8 +1846,7 @@ def _line( plotnonfinite: bool = ..., data=..., **kwargs, -) -> LineCollection: - ... +) -> LineCollection: ... @overload @@ -1877,8 +1870,7 @@ def _line( data=..., drawstyle: DrawStyleType = ..., **kwargs, -) -> Line3DCollection: - ... +) -> Line3DCollection: ... def _line(