MCPcopy
hub / github.com/pydata/xarray / _warn

Method _warn

xarray/core/utils.py:539–545  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

537 __slots__ = ("mapping",)
538
539 def _warn(self) -> None:
540 emit_user_level_warning(
541 "The return type of `Dataset.dims` will be changed to return a set of dimension names in future, "
542 "in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, "
543 "please use `Dataset.sizes`.",
544 FutureWarning,
545 )
546
547 def __getitem__(self, key: K) -> V:
548 self._warn()

Callers 5

__getitem__Method · 0.95
getMethod · 0.95
keysMethod · 0.95
itemsMethod · 0.95
valuesMethod · 0.95

Calls 1

emit_user_level_warningFunction · 0.85

Tested by

no test coverage detected