@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 indexes]

        if any(is_ts) or 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/operator `and` -> `or`