

def _assert_can_do_setop(self, other):
    if (not com.is_list_like(other)):
        raise TypeError('Input must be Index or array-like')
    return True

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index._assert_can_do_setop/original