

def _match(self, subject):
    try:
        return ((len(subject) == 0), [])
    except TypeError:
        try:
            next(subject)
        except StopIteration:
            return (True, [])
        return (False, [])

dataset/ETHPy150Open jaimegildesagredo/expects/expects/matchers/built_in/be_empty.py _be_empty._match/original