(
self,
indexes: Mapping[Any, Index],
variables: Mapping[Any, Variable] | None = None,
)
| 707 | return new_coords |
| 708 | |
| 709 | def _overwrite_indexes( |
| 710 | self, |
| 711 | indexes: Mapping[Any, Index], |
| 712 | variables: Mapping[Any, Variable] | None = None, |
| 713 | ) -> Self: |
| 714 | results = self.to_dataset()._overwrite_indexes(indexes, variables) |
| 715 | |
| 716 | # TODO: remove cast once we get rid of DatasetCoordinates |
| 717 | # and DataArrayCoordinates (i.e., Dataset and DataArray encapsulate Coordinates) |
| 718 | return cast(Self, results.coords) |
| 719 | |
| 720 | def _reindex_callback( |
| 721 | self, |
nothing calls this directly
no test coverage detected