Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 22, 2024
1 parent fcad6de commit 89820a0
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions xarray/plot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
"""
Expand All @@ -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:
"""
Expand Down Expand Up @@ -1852,8 +1846,7 @@ def _line(
plotnonfinite: bool = ...,
data=...,
**kwargs,
) -> LineCollection:
...
) -> LineCollection: ...


@overload
Expand All @@ -1877,8 +1870,7 @@ def _line(
data=...,
drawstyle: DrawStyleType = ...,
**kwargs,
) -> Line3DCollection:
...
) -> Line3DCollection: ...


def _line(
Expand Down

0 comments on commit 89820a0

Please sign in to comment.