from _typeshed import Incomplete from typing import Final from yaml.error import YAMLError class ResolverError(YAMLError): ... class BaseResolver: DEFAULT_SCALAR_TAG: Final = "tag:yaml.org,2002:str" DEFAULT_SEQUENCE_TAG: Final = "tag:yaml.org,2002:seq" DEFAULT_MAPPING_TAG: Final = "tag:yaml.org,2002:map" yaml_implicit_resolvers: dict[Incomplete, Incomplete] yaml_path_resolvers: dict[Incomplete, Incomplete] resolver_exact_paths: list[Incomplete] resolver_prefix_paths: list[Incomplete] def __init__(self) -> None: ... @classmethod def add_implicit_resolver(cls, tag, regexp, first) -> None: ... @classmethod def add_path_resolver(cls, tag, path, kind=None) -> None: ... def descend_resolver(self, current_node, current_index) -> None: ... def ascend_resolver(self) -> None: ... def check_resolver_prefix(self, depth, path, kind, current_node, current_index): ... def resolve(self, kind, value, implicit): ... class Resolver(BaseResolver): ... __all__ = ["BaseResolver", "Resolver"]