diff --git a/xarray/core/groupby.py b/xarray/core/groupby.py index 59d7e6c9ad6..ceae79031f8 100644 --- a/xarray/core/groupby.py +++ b/xarray/core/groupby.py @@ -50,7 +50,6 @@ ) from xarray.core.variable import IndexVariable, Variable from xarray.namedarray.pycompat import is_chunked_array -from xarray.util.deprecation_helpers import _deprecate_positional_args if TYPE_CHECKING: from numpy.typing import ArrayLike @@ -244,7 +243,9 @@ def to_array(self) -> DataArray: T_Group = Union["T_DataArray", _DummyGroup] -def _ensure_1d(group: T_Group, obj: T_DataWithCoords) -> tuple[ +def _ensure_1d( + group: T_Group, obj: T_DataWithCoords +) -> tuple[ T_Group, T_DataWithCoords, Hashable | None, diff --git a/xarray/core/weighted.py b/xarray/core/weighted.py index bd3a6ce7d54..269cb49a2c1 100644 --- a/xarray/core/weighted.py +++ b/xarray/core/weighted.py @@ -11,7 +11,6 @@ from xarray.core.computation import apply_ufunc, dot from xarray.core.types import Dims, T_DataArray, T_Xarray from xarray.namedarray.utils import is_duck_dask_array -from xarray.util.deprecation_helpers import _deprecate_positional_args # Weighted quantile methods are a subset of the numpy supported quantile methods. QUANTILE_METHODS = Literal[