safe_open_yaml

safe_open_yaml(path_or_url: str | Path | TextIO, *, encoding: str | None = None, newline: str | None = None) Any[source]

Safely open a file and parse as YAML.