load_dict

glotaran.builtin.io.yml.utils.load_dict(source: str | Path, is_file: bool) dict[str, Any][source]

Load yaml code from a file or string and returns the dict interpretation.

Parameters:
  • source (str | Path) – Path to a file or string containing the yaml code.

  • is_file (bool) – Whether or not source is a file.

Return type:

dict[str, Any]