Chech an object is single or pair or neither.

    Of course,, all pairs are single, so what the function is really detecting is whether an object is only single or at the same time a pair.

    Args:
        obj (object): Literally anything.

    Returns:
        str: 'Single', or 'Pair', or 'Neither'

def singleOrPair(obj):
    '''Chech an object is single or pair or neither.

    Of course,, all pairs are single, so what the function is really detecting is whether an object is only single or at the same time a pair.

    Args:
        obj (object): Literally anything.

    Returns:
        str: 'Single', or 'Pair', or 'Neither'
    '''
    if len(list(obj.__class__.__mro__)) <= 2:
        return 'Neither'
    else:
        # Pair check comes first for Pair is a subclass of Single
        if ancestorJr(obj) is Pair:
            return 'Pair'
        elif ancestor(obj) is Single:
            return 'Single'
        else:
            return 'Neither'