(self, other)
| 2072 | # TODO: annotate other as DatetimeArray | TimedeltaArray | Timestamp | Timedelta |
| 2073 | # with the return type matching input type. TypeVar? |
| 2074 | def _ensure_matching_resos(self, other): |
| 2075 | if self._creso != other._creso: |
| 2076 | # Just as with Timestamp/Timedelta, we cast to the higher resolution |
| 2077 | if self._creso < other._creso: |
| 2078 | self = self.as_unit(other.unit) |
| 2079 | else: |
| 2080 | other = other.as_unit(self.unit) |
| 2081 | return self, other |
| 2082 | |
| 2083 | # -------------------------------------------------------------- |
| 2084 |
no test coverage detected