

@staticmethod
def _ensure_compat_concat(indexes):
    from pandas.tseries.api import DatetimeIndex, PeriodIndex, TimedeltaIndex
    klasses = (DatetimeIndex, PeriodIndex, TimedeltaIndex)
    is_ts = [isinstance(idx, klasses) for idx in klasses]
    if (any(is_ts) and (not all(is_ts))):
        return [_maybe_box(idx) for idx in indexes]
    return indexes

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._ensure_compat_concat/VarMisuse@48/65 `indexes`->`klasses`