diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst
index 552d11a06dc..c96b0aa5c3b 100644
--- a/doc/api-hidden.rst
+++ b/doc/api-hidden.rst
@@ -351,6 +351,36 @@
IndexVariable.sizes
IndexVariable.values
+
+ namedarray.core.NamedArray.all
+ namedarray.core.NamedArray.any
+ namedarray.core.NamedArray.attrs
+ namedarray.core.NamedArray.chunks
+ namedarray.core.NamedArray.chunksizes
+ namedarray.core.NamedArray.copy
+ namedarray.core.NamedArray.count
+ namedarray.core.NamedArray.cumprod
+ namedarray.core.NamedArray.cumsum
+ namedarray.core.NamedArray.data
+ namedarray.core.NamedArray.dims
+ namedarray.core.NamedArray.dtype
+ namedarray.core.NamedArray.get_axis_num
+ namedarray.core.NamedArray.max
+ namedarray.core.NamedArray.mean
+ namedarray.core.NamedArray.median
+ namedarray.core.NamedArray.min
+ namedarray.core.NamedArray.nbytes
+ namedarray.core.NamedArray.ndim
+ namedarray.core.NamedArray.prod
+ namedarray.core.NamedArray.reduce
+ namedarray.core.NamedArray.shape
+ namedarray.core.NamedArray.size
+ namedarray.core.NamedArray.sizes
+ namedarray.core.NamedArray.std
+ namedarray.core.NamedArray.sum
+ namedarray.core.NamedArray.var
+
+
plot.plot
plot.line
plot.step
diff --git a/xarray/core/arithmetic.py b/xarray/core/arithmetic.py
index 5cdbc732741..d320eef1bbf 100644
--- a/xarray/core/arithmetic.py
+++ b/xarray/core/arithmetic.py
@@ -15,7 +15,6 @@
)
from xarray.core.common import ImplementsArrayReduce, ImplementsDatasetReduce
from xarray.core.ops import (
- IncludeCumMethods,
IncludeNumpySameMethods,
IncludeReduceMethods,
)
@@ -99,8 +98,6 @@ def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
class VariableArithmetic(
ImplementsArrayReduce,
- IncludeReduceMethods,
- IncludeCumMethods,
IncludeNumpySameMethods,
SupportsArithmetic,
VariableOpsMixin,
diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py
index ebd6fb6f51f..ef12d566517 100644
--- a/xarray/core/dataset.py
+++ b/xarray/core/dataset.py
@@ -6280,7 +6280,7 @@ def dropna(
array = self._variables[k]
if dim in array.dims:
dims = [d for d in array.dims if d != dim]
- count += np.asarray(array.count(dims)) # type: ignore[attr-defined]
+ count += np.asarray(array.count(dims))
size += math.prod([self.dims[d] for d in dims])
if thresh is not None:
diff --git a/xarray/core/formatting_html.py b/xarray/core/formatting_html.py
index d949cbdfbd1..3627554cf57 100644
--- a/xarray/core/formatting_html.py
+++ b/xarray/core/formatting_html.py
@@ -28,7 +28,7 @@ def _load_static_files():
]
-def short_data_repr_html(array):
+def short_data_repr_html(array) -> str:
"""Format "data" for DataArray and Variable."""
internal_data = getattr(array, "variable", array)._data
if hasattr(internal_data, "_repr_html_"):
@@ -37,7 +37,7 @@ def short_data_repr_html(array):
return f"
{text}
"
-def format_dims(dims, dims_with_index):
+def format_dims(dims, dims_with_index) -> str:
if not dims:
return ""
@@ -53,7 +53,7 @@ def format_dims(dims, dims_with_index):
return f""
-def summarize_attrs(attrs):
+def summarize_attrs(attrs) -> str:
attrs_dl = "".join(
f"{escape(str(k))} :" f"{escape(str(v))}"
for k, v in attrs.items()
@@ -62,7 +62,7 @@ def summarize_attrs(attrs):
return f"{attrs_dl}
"
-def _icon(icon_name):
+def _icon(icon_name) -> str:
# icon_name should be defined in xarray/static/html/icon-svg-inline.html
return (
f"