Source code for annotatedyaml.exceptions from __future__ import annotations [docs] class YAMLException(Exception): """Base class for all YAML exceptions.""" [docs] class YamlTypeError(YAMLException): """Raised by load_yaml_dict if top level data is not a dict."""