Skip to content

Commit c303ffc

Browse files
Fix "a array" misspelling (#10365)
1 parent 303748c commit c303ffc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/get-help/howdoi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ How do I ...
6969
- ``obj.dt.month`` for example where ``obj`` is a :py:class:`~xarray.DataArray` containing ``datetime64`` or ``cftime`` values. See :ref:`dt_accessor` for more.
7070
* - round off time values to a specified frequency
7171
- ``obj.dt.ceil``, ``obj.dt.floor``, ``obj.dt.round``. See :ref:`dt_accessor` for more.
72-
* - make a mask that is ``True`` where an object contains any of the values in a array
72+
* - make a mask that is ``True`` where an object contains any of the values in an array
7373
- :py:meth:`Dataset.isin`, :py:meth:`DataArray.isin`
7474
* - Index using a boolean mask
7575
- :py:meth:`Dataset.query`, :py:meth:`DataArray.query`, :py:meth:`Dataset.where`, :py:meth:`DataArray.where`

xarray/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ def is_np_timedelta_like(dtype: DTypeLike) -> bool:
20842084

20852085

20862086
def _contains_cftime_datetimes(array: Any) -> bool:
2087-
"""Check if a array inside a Variable contains cftime.datetime objects"""
2087+
"""Check if an array inside a Variable contains cftime.datetime objects"""
20882088
if cftime is None:
20892089
return False
20902090

xarray/core/duck_array_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def asarray(data, xp=np, dtype=None):
268268

269269

270270
def as_shared_dtype(scalars_or_arrays, xp=None):
271-
"""Cast a arrays to a shared dtype using xarray's type promotion rules."""
271+
"""Cast arrays to a shared dtype using xarray's type promotion rules."""
272272
if any(is_extension_array_dtype(x) for x in scalars_or_arrays):
273273
extension_array_types = [
274274
x.dtype for x in scalars_or_arrays if is_extension_array_dtype(x)

0 commit comments

Comments
 (0)