(self)
| 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() |
no test coverage detected