def _merge_with(self, *others: Union[('BaseContainer', Dict[(str, Any)], List[Any], Tuple[(Any, ...)], Any)]) -> None:
    from .dictconfig import DictConfig
    from .listconfig import ListConfig
    'merge a list of other Config objects into this one, overriding as needed'
    for other in others:
        if (other is None):
            raise ValueError('Cannot merge with a None config')
        my_flags = {}
        if (self._get_flag('allow_objects') is True):
            my_flags = {'allow_objects': True}
        other = _ensure_container(other, flags=my_flags)
        if (isinstance(self, DictConfig) and isinstance(other, DictConfig)):
            BaseContainer._map_merge(self, other)
        elif (isinstance(self, ListConfig) and isinstance(other, ListConfig)):
            BaseContainer._list_merge(self, other)
        else:
            raise TypeError('Cannot merge DictConfig with ListConfig')
    self._re_parent()
def _merge_with(self, *others: Union[('BaseContainer', Dict[(str, Any)], List[Any], Tuple[(Any, ...)], Any)]) -> None:
    from .dictconfig import DictConfig
    from .listconfig import ListConfig
    'merge a list of other Config objects into this one, overriding as needed'
    for other in others:
        if (other is None):
            raise ValueError('Cannot merge with a None config')
        my_flags = {}
        if (self._get_flag('allow_objects') is True):
            my_flags = {'allow_objects': True}
        other = _ensure_container(other, flags=my_flags)
        if (isinstance(self, DictConfig) and isinstance(other, DictConfig)):
            BaseContainer._map_merge(self, other)
        elif (isinstance(self, ListConfig) and isinstance(other, ListConfig)):
            BaseContainer._list_merge(self, other)
        else:
            raise TypeError('Cannot merge DictConfig with ListConfig')
    self._re_parent()