def condition_factory_for_list_items(validators, prefix, _type) -> Callable:
    """takes _type: T, generates a function to validate a value against it"""
    # IDEA:
    # Evaluate the possibility to replace this with a new attribute on a
    # validator that will validate against each internal item of a list
    # Validator("X", is_type_of=list, items=[Validator(is_type_of=int)])

    def validator_condition(values):
        if isinstance(_type, type) and issubclass(_type, ty.DictValue):
            for i, value in enumerate(values):
                for _validator in validators:
                    for k, v in _validator.messages.items():
                        _validator.messages[k] = v.replace(
                            "{name}", prefix + f"[{i}]." + "{name}"
                        )
                    _validator.validate(BaseDynaconfSettings(**value))
        else:
            for i, value in enumerate(values):
                _settings = BaseDynaconfSettings()
                _settings.set(prefix, value)
                _validator = BaseValidator(
                    prefix,
                    is_type_of=_type,
                )
                for k, v in _validator.messages.items():
                    _validator.messages[k] = v.replace(
                        "{name}", "{name}" + f"[{i}]"
                    )
                _validator.validate(_settings)

        # No validation error
        return True

    return validator_condition
takes _type: T, generates a function to validate a value against it
dynaconf/typed/utils.py