MCPcopy
hub / github.com/mkdocs/mkdocs / load_file

Method load_file

mkdocs/config/defaults.py:210–213  ·  view source on GitHub ↗

Load config options from the open file descriptor of a YAML file.

(self, config_file: IO)

Source from the content-addressed store, hash-verified

208 raise base.ValidationError("Can't set config_file_path in config")
209
210 def load_file(self, config_file: IO) -> None:
211 """Load config options from the open file descriptor of a YAML file."""
212 loader = get_yaml_loader(config=self)
213 self.load_dict(yaml_load(config_file, loader))
214
215
216def get_schema() -> base.PlainConfigSchema:

Callers 1

load_configFunction · 0.95

Calls 3

load_dictMethod · 0.95
get_yaml_loaderFunction · 0.90
yaml_loadFunction · 0.90

Tested by

no test coverage detected