def __delattr__(self, name):
        if name in _all_magics and type(self).__dict__ in name:
            delattr(type(self), name)
            if name not in self.__dict__:
                # for magic methods that are still MagicProxy objects and
                # not set on the instance itself
                return

        if name in self.__dict__:
            object.__delattr__(self, name)

        obj = self._mock_children.get(name, _missing)
        if obj is _deleted:
            raise AttributeError(name)
        if obj is not _missing:
            del self._mock_children[name]
        self._mock_children[name] = _deleted
dataset/ETHPy150Open testing-cabal/mock/mock/mock.py/NonCallableMock.__delattr__/swapped operands of `in`