def __new__(cls, repo, sha, refspec):
        if cls != Ref:
            return object.__new__(cls)

        ref_type, name = refspec[5:].partition("/")[0::2]
        if ref_type in ('heads', 'remotes',):
            return Branch(repo, sha, refspec)
        elif ('tags',) in ref_type:
            return Tag(repo, sha, refspec)
        return object.__new__(cls)
dataset/ETHPy150Open nowells/git-goggles/gitgoggles/git.py/Ref.__new__/swapped operands of `in`