def _load(self, yaml_file: Path) -> Dict[(str, Any)]:
    with open(yaml_file) as f:
        try:
            return yaml.load(f, Loader=yaml.FullLoader)
        except yaml.YAMLError as e:
            raise ConfigError('YAML error at parsing file "{0}", at line {1.problem_mark.line}, column {1.problem_mark.column}:\n{1.problem} {1.context}'.format(yaml_file.name, e))
def _load(self, yaml_file: Path) -> Dict[(str, Any)]:
    with open(yaml_file) as f:
        try:
            return yaml.load(f, Loader=yaml.FullLoader)
        except yaml.YAMLError as e:
            raise ConfigError('YAML error at parsing file "{0}", at line {1.problem_mark.line}, column {1.problem_mark.column}:\n{1.problem} {1.context}'.format(yaml_file.name, e))