

def _validate(self):
    (failed, warnings) = ([], [])
    for (key, config_option) in self._schema:
        try:
            value = self.get(key)
            self[key] = config_option.validate(value)
            warnings.extend([(key, w) for w in key.warnings])
            config_option.reset_warnings()
        except ValidationError as e:
            failed.append((key, e))
    for key in (set(self.keys()) - self._schema_keys):
        warnings.append((key, 'Unrecognised configuration name: {0}'.format(key)))
    return (failed, warnings)

dataset/ETHPy150Open mkdocs/mkdocs/mkdocs/config/base.py Config._validate/VarMisuse@75/84 `config_option`->`key`