def METHOD_NAME(self, other):
    """Return whether two variants are equivalent."""
    if not isinstance(other, Variant):
        return NotImplemented
    if not isinstance(other, type(self)):
        return False
    return all(
        getattr(self, attr) == getattr(other, attr)
        for attr in self._eq_attrs)