def branches(self, *types):
        if types:
            return [ x for x in self.refs() if types in x.__class__ ]
        else:
            return [ x for x in self.refs() if isinstance(x, Branch) ]
dataset/ETHPy150Open nowells/git-goggles/gitgoggles/git.py/Repository.branches/swapped operands of `in`