Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xarray/backends/zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def extract_zarr_variable_encoding(
# The only change is to raise an error for object dtypes.
def encode_zarr_variable(var, needs_copy=True, name=None):
"""
Converts an Variable into an Variable which follows some
Converts a Variable into another Variable which follows some
of the CF conventions:

- Nans are masked using _FillValue (or the deprecated missing_value)
Expand Down
2 changes: 1 addition & 1 deletion xarray/compat/npcompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def isdtype( # type: ignore[misc]
)
if unknown_kinds := {k for k in str_kinds if k not in kind_mapping}:
raise ValueError(
f"unknown kind: {unknown_kinds}, must be a np.dtype or one of {list(kind_mapping)}"
f"unknown kind: {unknown_kinds}, must be an np.dtype or one of {list(kind_mapping)}"
)

# verified the dtypes already, no need to check again
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ def as_indexable(array):
def _outer_to_vectorized_indexer(
indexer: BasicIndexer | OuterIndexer, shape: _Shape
) -> VectorizedIndexer:
"""Convert an OuterIndexer into an vectorized indexer.
"""Convert an OuterIndexer into a vectorized indexer.

Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ class Variable(NamedArray, AbstractArray, VariableArithmetic):

The main functional difference between Variables and numpy arrays is that
numerical operations on Variables implement array broadcasting by dimension
name. For example, adding an Variable with dimensions `('time',)` to
name. For example, adding a Variable with dimensions `('time',)` to
another Variable with dimensions `('space',)` results in a new Variable
with dimensions `('time', 'space')`. Furthermore, numpy reduce operations
like ``mean`` or ``sum`` are overwritten to take a "dimension" argument
Expand Down
2 changes: 1 addition & 1 deletion xarray/util/generate_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
("__invert__", "operator.invert"),
)
# round method and numpy/pandas unary methods which don't modify the data shape,
# so the result should still be wrapped in an Variable/DataArray/Dataset
# so the result should still be wrapped in a Variable/DataArray/Dataset
OTHER_UNARY_METHODS = (
("round", "ops.round_"),
("argsort", "ops.argsort"),
Expand Down
Loading