def asof_locs(self, where: Index, mask: np.ndarray) -> np.ndarray:
    '\n        where : array of timestamps\n        mask : np.ndarray[bool]\n            Array of booleans where data is not NA.\n        '
    if isinstance(where, DatetimeIndex):
        where = PeriodIndex(where._values, freq=self.freq)
    elif (not isinstance(where, PeriodIndex)):
        raise TypeError('asof_locs `where` must be DatetimeIndex or PeriodIndex')
    return super().asof_locs(where, mask)
where : array of timestamps
mask : np.ndarray[bool]
    Array of booleans where data is not NA.
def asof_locs(self, where: Index, mask: np.ndarray) -> np.ndarray:
    '\n        where : array of timestamps\n        mask : np.ndarray[bool]\n            Array of booleans where data is not NA.\n        '
    if isinstance(where, DatetimeIndex):
        where = PeriodIndex(where._values, freq=self.freq)
    elif (not isinstance(where, PeriodIndex)):
        raise TypeError('asof_locs `where` must be DatetimeIndex or PeriodIndex')
    return super().asof_locs(where, mask)