mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-14 22:21:44 +08:00
Move yaml stubs to 2and3 (#1155)
This commit is contained in:
committed by
Jelle Zijlstra
parent
51959f09c7
commit
f543ddd89a
51
third_party/2/yaml/__init__.pyi
vendored
51
third_party/2/yaml/__init__.pyi
vendored
@@ -1,51 +0,0 @@
|
||||
# Stubs for yaml (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
# from yaml.error import *
|
||||
# from yaml.tokens import *
|
||||
# from yaml.events import *
|
||||
# from yaml.nodes import *
|
||||
# from yaml.loader import *
|
||||
# from yaml.dumper import *
|
||||
# TODO: stubs for cyaml?
|
||||
# from cyaml import *
|
||||
|
||||
__with_libyaml__ = ... # type: Any
|
||||
|
||||
def scan(stream, Loader=...): ...
|
||||
def parse(stream, Loader=...): ...
|
||||
def compose(stream, Loader=...): ...
|
||||
def compose_all(stream, Loader=...): ...
|
||||
def load(stream, Loader=...): ...
|
||||
def load_all(stream, Loader=...): ...
|
||||
def safe_load(stream): ...
|
||||
def safe_load_all(stream): ...
|
||||
def emit(events, stream=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=...): ...
|
||||
def serialize_all(nodes, stream=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...): ...
|
||||
def serialize(node, stream=..., Dumper=..., **kwds): ...
|
||||
def dump_all(documents, stream=..., Dumper=..., default_style=..., default_flow_style=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...): ...
|
||||
def dump(data, stream=..., Dumper=..., **kwds): ...
|
||||
def safe_dump_all(documents, stream=..., **kwds): ...
|
||||
def safe_dump(data, stream=..., **kwds): ...
|
||||
def add_implicit_resolver(tag, regexp, first=..., Loader=..., Dumper=...): ...
|
||||
def add_path_resolver(tag, path, kind=..., Loader=..., Dumper=...): ...
|
||||
def add_constructor(tag, constructor, Loader=...): ...
|
||||
def add_multi_constructor(tag_prefix, multi_constructor, Loader=...): ...
|
||||
def add_representer(data_type, representer, Dumper=...): ...
|
||||
def add_multi_representer(data_type, multi_representer, Dumper=...): ...
|
||||
|
||||
class YAMLObjectMetaclass(type):
|
||||
def __init__(cls, name, bases, kwds) -> None: ...
|
||||
|
||||
class YAMLObject:
|
||||
__metaclass__ = YAMLObjectMetaclass
|
||||
yaml_loader = ... # type: Any
|
||||
yaml_dumper = ... # type: Any
|
||||
yaml_tag = ... # type: Any
|
||||
yaml_flow_style = ... # type: Any
|
||||
@classmethod
|
||||
def from_yaml(cls, loader, node): ...
|
||||
@classmethod
|
||||
def to_yaml(cls, dumper, data): ...
|
||||
21
third_party/2/yaml/composer.pyi
vendored
21
third_party/2/yaml/composer.pyi
vendored
@@ -1,21 +0,0 @@
|
||||
# Stubs for yaml.composer (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from yaml.error import Mark, YAMLError, MarkedYAMLError
|
||||
from yaml.nodes import Node, ScalarNode, CollectionNode, SequenceNode, MappingNode
|
||||
|
||||
class ComposerError(MarkedYAMLError): ...
|
||||
|
||||
class Composer:
|
||||
anchors = ... # type: Any
|
||||
def __init__(self) -> None: ...
|
||||
def check_node(self): ...
|
||||
def get_node(self): ...
|
||||
def get_single_node(self): ...
|
||||
def compose_document(self): ...
|
||||
def compose_node(self, parent, index): ...
|
||||
def compose_scalar_node(self, anchor): ...
|
||||
def compose_sequence_node(self, anchor): ...
|
||||
def compose_mapping_node(self, anchor): ...
|
||||
70
third_party/2/yaml/constructor.pyi
vendored
70
third_party/2/yaml/constructor.pyi
vendored
@@ -1,70 +0,0 @@
|
||||
# Stubs for yaml.constructor (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from yaml.error import Mark, YAMLError, MarkedYAMLError
|
||||
from yaml.nodes import Node, ScalarNode, CollectionNode, SequenceNode, MappingNode
|
||||
|
||||
from typing import Any
|
||||
|
||||
class ConstructorError(MarkedYAMLError): ...
|
||||
|
||||
class BaseConstructor:
|
||||
yaml_constructors = ... # type: Any
|
||||
yaml_multi_constructors = ... # type: Any
|
||||
constructed_objects = ... # type: Any
|
||||
recursive_objects = ... # type: Any
|
||||
state_generators = ... # type: Any
|
||||
deep_construct = ... # type: Any
|
||||
def __init__(self) -> None: ...
|
||||
def check_data(self): ...
|
||||
def get_data(self): ...
|
||||
def get_single_data(self): ...
|
||||
def construct_document(self, node): ...
|
||||
def construct_object(self, node, deep=...): ...
|
||||
def construct_scalar(self, node): ...
|
||||
def construct_sequence(self, node, deep=...): ...
|
||||
def construct_mapping(self, node, deep=...): ...
|
||||
def construct_pairs(self, node, deep=...): ...
|
||||
def add_constructor(cls, tag, constructor): ...
|
||||
def add_multi_constructor(cls, tag_prefix, multi_constructor): ...
|
||||
|
||||
class SafeConstructor(BaseConstructor):
|
||||
def construct_scalar(self, node): ...
|
||||
def flatten_mapping(self, node): ...
|
||||
def construct_mapping(self, node, deep=...): ...
|
||||
def construct_yaml_null(self, node): ...
|
||||
bool_values = ... # type: Any
|
||||
def construct_yaml_bool(self, node): ...
|
||||
def construct_yaml_int(self, node): ...
|
||||
inf_value = ... # type: Any
|
||||
nan_value = ... # type: Any
|
||||
def construct_yaml_float(self, node): ...
|
||||
def construct_yaml_binary(self, node): ...
|
||||
timestamp_regexp = ... # type: Any
|
||||
def construct_yaml_timestamp(self, node): ...
|
||||
def construct_yaml_omap(self, node): ...
|
||||
def construct_yaml_pairs(self, node): ...
|
||||
def construct_yaml_set(self, node): ...
|
||||
def construct_yaml_str(self, node): ...
|
||||
def construct_yaml_seq(self, node): ...
|
||||
def construct_yaml_map(self, node): ...
|
||||
def construct_yaml_object(self, node, cls): ...
|
||||
def construct_undefined(self, node): ...
|
||||
|
||||
class Constructor(SafeConstructor):
|
||||
def construct_python_str(self, node): ...
|
||||
def construct_python_unicode(self, node): ...
|
||||
def construct_python_long(self, node): ...
|
||||
def construct_python_complex(self, node): ...
|
||||
def construct_python_tuple(self, node): ...
|
||||
def find_python_module(self, name, mark): ...
|
||||
def find_python_name(self, name, mark): ...
|
||||
def construct_python_name(self, suffix, node): ...
|
||||
def construct_python_module(self, suffix, node): ...
|
||||
class classobj: ...
|
||||
def make_python_instance(self, suffix, node, args=..., kwds=..., newobj=...): ...
|
||||
def set_python_instance_state(self, instance, state): ...
|
||||
def construct_python_object(self, suffix, node): ...
|
||||
def construct_python_object_apply(self, suffix, node, newobj=...): ...
|
||||
def construct_python_object_new(self, suffix, node): ...
|
||||
17
third_party/2/yaml/dumper.pyi
vendored
17
third_party/2/yaml/dumper.pyi
vendored
@@ -1,17 +0,0 @@
|
||||
# Stubs for yaml.dumper (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from yaml.emitter import Emitter
|
||||
from yaml.serializer import Serializer
|
||||
from yaml.representer import BaseRepresenter, Representer, SafeRepresenter
|
||||
from yaml.resolver import BaseResolver, Resolver
|
||||
|
||||
class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver):
|
||||
def __init__(self, stream, default_style=..., default_flow_style=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> None: ...
|
||||
|
||||
class SafeDumper(Emitter, Serializer, SafeRepresenter, Resolver):
|
||||
def __init__(self, stream, default_style=..., default_flow_style=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> None: ...
|
||||
|
||||
class Dumper(Emitter, Serializer, Representer, Resolver):
|
||||
def __init__(self, stream, default_style=..., default_flow_style=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> None: ...
|
||||
110
third_party/2/yaml/emitter.pyi
vendored
110
third_party/2/yaml/emitter.pyi
vendored
@@ -1,110 +0,0 @@
|
||||
# Stubs for yaml.emitter (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from yaml.error import YAMLError
|
||||
|
||||
class EmitterError(YAMLError): ...
|
||||
|
||||
class ScalarAnalysis:
|
||||
scalar = ... # type: Any
|
||||
empty = ... # type: Any
|
||||
multiline = ... # type: Any
|
||||
allow_flow_plain = ... # type: Any
|
||||
allow_block_plain = ... # type: Any
|
||||
allow_single_quoted = ... # type: Any
|
||||
allow_double_quoted = ... # type: Any
|
||||
allow_block = ... # type: Any
|
||||
def __init__(self, scalar, empty, multiline, allow_flow_plain, allow_block_plain, allow_single_quoted, allow_double_quoted, allow_block) -> None: ...
|
||||
|
||||
class Emitter:
|
||||
DEFAULT_TAG_PREFIXES = ... # type: Any
|
||||
stream = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
states = ... # type: Any
|
||||
state = ... # type: Any
|
||||
events = ... # type: Any
|
||||
event = ... # type: Any
|
||||
indents = ... # type: Any
|
||||
indent = ... # type: Any
|
||||
flow_level = ... # type: Any
|
||||
root_context = ... # type: Any
|
||||
sequence_context = ... # type: Any
|
||||
mapping_context = ... # type: Any
|
||||
simple_key_context = ... # type: Any
|
||||
line = ... # type: Any
|
||||
column = ... # type: Any
|
||||
whitespace = ... # type: Any
|
||||
indention = ... # type: Any
|
||||
open_ended = ... # type: Any
|
||||
canonical = ... # type: Any
|
||||
allow_unicode = ... # type: Any
|
||||
best_indent = ... # type: Any
|
||||
best_width = ... # type: Any
|
||||
best_line_break = ... # type: Any
|
||||
tag_prefixes = ... # type: Any
|
||||
prepared_anchor = ... # type: Any
|
||||
prepared_tag = ... # type: Any
|
||||
analysis = ... # type: Any
|
||||
style = ... # type: Any
|
||||
def __init__(self, stream, canonical=..., indent=..., width=..., allow_unicode=..., line_break=...) -> None: ...
|
||||
def dispose(self): ...
|
||||
def emit(self, event): ...
|
||||
def need_more_events(self): ...
|
||||
def need_events(self, count): ...
|
||||
def increase_indent(self, flow=..., indentless=...): ...
|
||||
def expect_stream_start(self): ...
|
||||
def expect_nothing(self): ...
|
||||
def expect_first_document_start(self): ...
|
||||
def expect_document_start(self, first=...): ...
|
||||
def expect_document_end(self): ...
|
||||
def expect_document_root(self): ...
|
||||
def expect_node(self, root=..., sequence=..., mapping=..., simple_key=...): ...
|
||||
def expect_alias(self): ...
|
||||
def expect_scalar(self): ...
|
||||
def expect_flow_sequence(self): ...
|
||||
def expect_first_flow_sequence_item(self): ...
|
||||
def expect_flow_sequence_item(self): ...
|
||||
def expect_flow_mapping(self): ...
|
||||
def expect_first_flow_mapping_key(self): ...
|
||||
def expect_flow_mapping_key(self): ...
|
||||
def expect_flow_mapping_simple_value(self): ...
|
||||
def expect_flow_mapping_value(self): ...
|
||||
def expect_block_sequence(self): ...
|
||||
def expect_first_block_sequence_item(self): ...
|
||||
def expect_block_sequence_item(self, first=...): ...
|
||||
def expect_block_mapping(self): ...
|
||||
def expect_first_block_mapping_key(self): ...
|
||||
def expect_block_mapping_key(self, first=...): ...
|
||||
def expect_block_mapping_simple_value(self): ...
|
||||
def expect_block_mapping_value(self): ...
|
||||
def check_empty_sequence(self): ...
|
||||
def check_empty_mapping(self): ...
|
||||
def check_empty_document(self): ...
|
||||
def check_simple_key(self): ...
|
||||
def process_anchor(self, indicator): ...
|
||||
def process_tag(self): ...
|
||||
def choose_scalar_style(self): ...
|
||||
def process_scalar(self): ...
|
||||
def prepare_version(self, version): ...
|
||||
def prepare_tag_handle(self, handle): ...
|
||||
def prepare_tag_prefix(self, prefix): ...
|
||||
def prepare_tag(self, tag): ...
|
||||
def prepare_anchor(self, anchor): ...
|
||||
def analyze_scalar(self, scalar): ...
|
||||
def flush_stream(self): ...
|
||||
def write_stream_start(self): ...
|
||||
def write_stream_end(self): ...
|
||||
def write_indicator(self, indicator, need_whitespace, whitespace=..., indention=...): ...
|
||||
def write_indent(self): ...
|
||||
def write_line_break(self, data=...): ...
|
||||
def write_version_directive(self, version_text): ...
|
||||
def write_tag_directive(self, handle_text, prefix_text): ...
|
||||
def write_single_quoted(self, text, split=...): ...
|
||||
ESCAPE_REPLACEMENTS = ... # type: Any
|
||||
def write_double_quoted(self, text, split=...): ...
|
||||
def determine_block_hints(self, text): ...
|
||||
def write_folded(self, text): ...
|
||||
def write_literal(self, text): ...
|
||||
def write_plain(self, text, split=...): ...
|
||||
25
third_party/2/yaml/error.pyi
vendored
25
third_party/2/yaml/error.pyi
vendored
@@ -1,25 +0,0 @@
|
||||
# Stubs for yaml.error (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class Mark:
|
||||
name = ... # type: Any
|
||||
index = ... # type: Any
|
||||
line = ... # type: Any
|
||||
column = ... # type: Any
|
||||
buffer = ... # type: Any
|
||||
pointer = ... # type: Any
|
||||
def __init__(self, name, index, line, column, buffer, pointer) -> None: ...
|
||||
def get_snippet(self, indent=..., max_length=...): ...
|
||||
|
||||
class YAMLError(Exception): ...
|
||||
|
||||
class MarkedYAMLError(YAMLError):
|
||||
context = ... # type: Any
|
||||
context_mark = ... # type: Any
|
||||
problem = ... # type: Any
|
||||
problem_mark = ... # type: Any
|
||||
note = ... # type: Any
|
||||
def __init__(self, context=..., context_mark=..., problem=..., problem_mark=..., note=...) -> None: ...
|
||||
66
third_party/2/yaml/events.pyi
vendored
66
third_party/2/yaml/events.pyi
vendored
@@ -1,66 +0,0 @@
|
||||
# Stubs for yaml.events (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class Event:
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, start_mark=..., end_mark=...) -> None: ...
|
||||
|
||||
class NodeEvent(Event):
|
||||
anchor = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, anchor, start_mark=..., end_mark=...) -> None: ...
|
||||
|
||||
class CollectionStartEvent(NodeEvent):
|
||||
anchor = ... # type: Any
|
||||
tag = ... # type: Any
|
||||
implicit = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
flow_style = ... # type: Any
|
||||
def __init__(self, anchor, tag, implicit, start_mark=..., end_mark=..., flow_style=...) -> None: ...
|
||||
|
||||
class CollectionEndEvent(Event): ...
|
||||
|
||||
class StreamStartEvent(Event):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
def __init__(self, start_mark=..., end_mark=..., encoding=...) -> None: ...
|
||||
|
||||
class StreamEndEvent(Event): ...
|
||||
|
||||
class DocumentStartEvent(Event):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
explicit = ... # type: Any
|
||||
version = ... # type: Any
|
||||
tags = ... # type: Any
|
||||
def __init__(self, start_mark=..., end_mark=..., explicit=..., version=..., tags=...) -> None: ...
|
||||
|
||||
class DocumentEndEvent(Event):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
explicit = ... # type: Any
|
||||
def __init__(self, start_mark=..., end_mark=..., explicit=...) -> None: ...
|
||||
|
||||
class AliasEvent(NodeEvent): ...
|
||||
|
||||
class ScalarEvent(NodeEvent):
|
||||
anchor = ... # type: Any
|
||||
tag = ... # type: Any
|
||||
implicit = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
style = ... # type: Any
|
||||
def __init__(self, anchor, tag, implicit, value, start_mark=..., end_mark=..., style=...) -> None: ...
|
||||
|
||||
class SequenceStartEvent(CollectionStartEvent): ...
|
||||
class SequenceEndEvent(CollectionEndEvent): ...
|
||||
class MappingStartEvent(CollectionStartEvent): ...
|
||||
class MappingEndEvent(CollectionEndEvent): ...
|
||||
19
third_party/2/yaml/loader.pyi
vendored
19
third_party/2/yaml/loader.pyi
vendored
@@ -1,19 +0,0 @@
|
||||
# Stubs for yaml.loader (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from yaml.reader import Reader
|
||||
from yaml.scanner import Scanner
|
||||
from yaml.parser import Parser
|
||||
from yaml.composer import Composer
|
||||
from yaml.constructor import BaseConstructor, SafeConstructor, Constructor
|
||||
from yaml.resolver import BaseResolver, Resolver
|
||||
|
||||
class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver):
|
||||
def __init__(self, stream) -> None: ...
|
||||
|
||||
class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver):
|
||||
def __init__(self, stream) -> None: ...
|
||||
|
||||
class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
|
||||
def __init__(self, stream) -> None: ...
|
||||
35
third_party/2/yaml/nodes.pyi
vendored
35
third_party/2/yaml/nodes.pyi
vendored
@@ -1,35 +0,0 @@
|
||||
# Stubs for yaml.nodes (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class Node:
|
||||
tag = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, tag, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class ScalarNode(Node):
|
||||
id = ... # type: Any
|
||||
tag = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
style = ... # type: Any
|
||||
def __init__(self, tag, value, start_mark=..., end_mark=..., style=...) -> None: ...
|
||||
|
||||
class CollectionNode(Node):
|
||||
tag = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
flow_style = ... # type: Any
|
||||
def __init__(self, tag, value, start_mark=..., end_mark=..., flow_style=...) -> None: ...
|
||||
|
||||
class SequenceNode(CollectionNode):
|
||||
id = ... # type: Any
|
||||
|
||||
class MappingNode(CollectionNode):
|
||||
id = ... # type: Any
|
||||
48
third_party/2/yaml/parser.pyi
vendored
48
third_party/2/yaml/parser.pyi
vendored
@@ -1,48 +0,0 @@
|
||||
# Stubs for yaml.parser (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from yaml.error import MarkedYAMLError
|
||||
|
||||
class ParserError(MarkedYAMLError): ...
|
||||
|
||||
class Parser:
|
||||
DEFAULT_TAGS = ... # type: Any
|
||||
current_event = ... # type: Any
|
||||
yaml_version = ... # type: Any
|
||||
tag_handles = ... # type: Any
|
||||
states = ... # type: Any
|
||||
marks = ... # type: Any
|
||||
state = ... # type: Any
|
||||
def __init__(self) -> None: ...
|
||||
def dispose(self): ...
|
||||
def check_event(self, *choices): ...
|
||||
def peek_event(self): ...
|
||||
def get_event(self): ...
|
||||
def parse_stream_start(self): ...
|
||||
def parse_implicit_document_start(self): ...
|
||||
def parse_document_start(self): ...
|
||||
def parse_document_end(self): ...
|
||||
def parse_document_content(self): ...
|
||||
def process_directives(self): ...
|
||||
def parse_block_node(self): ...
|
||||
def parse_flow_node(self): ...
|
||||
def parse_block_node_or_indentless_sequence(self): ...
|
||||
def parse_node(self, block=..., indentless_sequence=...): ...
|
||||
def parse_block_sequence_first_entry(self): ...
|
||||
def parse_block_sequence_entry(self): ...
|
||||
def parse_indentless_sequence_entry(self): ...
|
||||
def parse_block_mapping_first_key(self): ...
|
||||
def parse_block_mapping_key(self): ...
|
||||
def parse_block_mapping_value(self): ...
|
||||
def parse_flow_sequence_first_entry(self): ...
|
||||
def parse_flow_sequence_entry(self, first=...): ...
|
||||
def parse_flow_sequence_entry_mapping_key(self): ...
|
||||
def parse_flow_sequence_entry_mapping_value(self): ...
|
||||
def parse_flow_sequence_entry_mapping_end(self): ...
|
||||
def parse_flow_mapping_first_key(self): ...
|
||||
def parse_flow_mapping_key(self, first=...): ...
|
||||
def parse_flow_mapping_value(self): ...
|
||||
def parse_flow_mapping_empty_value(self): ...
|
||||
def process_empty_scalar(self, mark): ...
|
||||
38
third_party/2/yaml/reader.pyi
vendored
38
third_party/2/yaml/reader.pyi
vendored
@@ -1,38 +0,0 @@
|
||||
# Stubs for yaml.reader (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from yaml.error import YAMLError
|
||||
|
||||
class ReaderError(YAMLError):
|
||||
name = ... # type: Any
|
||||
character = ... # type: Any
|
||||
position = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
reason = ... # type: Any
|
||||
def __init__(self, name, position, character, encoding, reason) -> None: ...
|
||||
|
||||
class Reader:
|
||||
name = ... # type: Any
|
||||
stream = ... # type: Any
|
||||
stream_pointer = ... # type: Any
|
||||
eof = ... # type: Any
|
||||
buffer = ... # type: Any
|
||||
pointer = ... # type: Any
|
||||
raw_buffer = ... # type: Any
|
||||
raw_decode = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
index = ... # type: Any
|
||||
line = ... # type: Any
|
||||
column = ... # type: Any
|
||||
def __init__(self, stream) -> None: ...
|
||||
def peek(self, index=...): ...
|
||||
def prefix(self, length=...): ...
|
||||
def forward(self, length=...): ...
|
||||
def get_mark(self): ...
|
||||
def determine_encoding(self): ...
|
||||
NON_PRINTABLE = ... # type: Any
|
||||
def check_printable(self, data): ...
|
||||
def update(self, length): ...
|
||||
def update_raw(self, size=...): ...
|
||||
56
third_party/2/yaml/representer.pyi
vendored
56
third_party/2/yaml/representer.pyi
vendored
@@ -1,56 +0,0 @@
|
||||
# Stubs for yaml.representer (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from yaml.error import YAMLError
|
||||
|
||||
class RepresenterError(YAMLError): ...
|
||||
|
||||
class BaseRepresenter:
|
||||
yaml_representers = ... # type: Any
|
||||
yaml_multi_representers = ... # type: Any
|
||||
default_style = ... # type: Any
|
||||
default_flow_style = ... # type: Any
|
||||
represented_objects = ... # type: Any
|
||||
object_keeper = ... # type: Any
|
||||
alias_key = ... # type: Any
|
||||
def __init__(self, default_style=..., default_flow_style=...) -> None: ...
|
||||
def represent(self, data): ...
|
||||
def get_classobj_bases(self, cls): ...
|
||||
def represent_data(self, data): ...
|
||||
def add_representer(cls, data_type, representer): ...
|
||||
def add_multi_representer(cls, data_type, representer): ...
|
||||
def represent_scalar(self, tag, value, style=...): ...
|
||||
def represent_sequence(self, tag, sequence, flow_style=...): ...
|
||||
def represent_mapping(self, tag, mapping, flow_style=...): ...
|
||||
def ignore_aliases(self, data): ...
|
||||
|
||||
class SafeRepresenter(BaseRepresenter):
|
||||
def ignore_aliases(self, data): ...
|
||||
def represent_none(self, data): ...
|
||||
def represent_str(self, data): ...
|
||||
def represent_unicode(self, data): ...
|
||||
def represent_bool(self, data): ...
|
||||
def represent_int(self, data): ...
|
||||
def represent_long(self, data): ...
|
||||
inf_value = ... # type: Any
|
||||
def represent_float(self, data): ...
|
||||
def represent_list(self, data): ...
|
||||
def represent_dict(self, data): ...
|
||||
def represent_set(self, data): ...
|
||||
def represent_date(self, data): ...
|
||||
def represent_datetime(self, data): ...
|
||||
def represent_yaml_object(self, tag, data, cls, flow_style=...): ...
|
||||
def represent_undefined(self, data): ...
|
||||
|
||||
class Representer(SafeRepresenter):
|
||||
def represent_str(self, data): ...
|
||||
def represent_unicode(self, data): ...
|
||||
def represent_long(self, data): ...
|
||||
def represent_complex(self, data): ...
|
||||
def represent_tuple(self, data): ...
|
||||
def represent_name(self, data): ...
|
||||
def represent_module(self, data): ...
|
||||
def represent_instance(self, data): ...
|
||||
def represent_object(self, data): ...
|
||||
26
third_party/2/yaml/resolver.pyi
vendored
26
third_party/2/yaml/resolver.pyi
vendored
@@ -1,26 +0,0 @@
|
||||
# Stubs for yaml.resolver (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from yaml.error import YAMLError
|
||||
|
||||
class ResolverError(YAMLError): ...
|
||||
|
||||
class BaseResolver:
|
||||
DEFAULT_SCALAR_TAG = ... # type: Any
|
||||
DEFAULT_SEQUENCE_TAG = ... # type: Any
|
||||
DEFAULT_MAPPING_TAG = ... # type: Any
|
||||
yaml_implicit_resolvers = ... # type: Any
|
||||
yaml_path_resolvers = ... # type: Any
|
||||
resolver_exact_paths = ... # type: Any
|
||||
resolver_prefix_paths = ... # type: Any
|
||||
def __init__(self) -> None: ...
|
||||
def add_implicit_resolver(cls, tag, regexp, first): ...
|
||||
def add_path_resolver(cls, tag, path, kind=...): ...
|
||||
def descend_resolver(self, current_node, current_index): ...
|
||||
def ascend_resolver(self): ...
|
||||
def check_resolver_prefix(self, depth, path, kind, current_node, current_index): ...
|
||||
def resolve(self, kind, value, implicit): ...
|
||||
|
||||
class Resolver(BaseResolver): ...
|
||||
100
third_party/2/yaml/scanner.pyi
vendored
100
third_party/2/yaml/scanner.pyi
vendored
@@ -1,100 +0,0 @@
|
||||
# Stubs for yaml.scanner (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from yaml.error import MarkedYAMLError
|
||||
|
||||
class ScannerError(MarkedYAMLError): ...
|
||||
|
||||
class SimpleKey:
|
||||
token_number = ... # type: Any
|
||||
required = ... # type: Any
|
||||
index = ... # type: Any
|
||||
line = ... # type: Any
|
||||
column = ... # type: Any
|
||||
mark = ... # type: Any
|
||||
def __init__(self, token_number, required, index, line, column, mark) -> None: ...
|
||||
|
||||
class Scanner:
|
||||
done = ... # type: Any
|
||||
flow_level = ... # type: Any
|
||||
tokens = ... # type: Any
|
||||
tokens_taken = ... # type: Any
|
||||
indent = ... # type: Any
|
||||
indents = ... # type: Any
|
||||
allow_simple_key = ... # type: Any
|
||||
possible_simple_keys = ... # type: Any
|
||||
def __init__(self) -> None: ...
|
||||
def check_token(self, *choices): ...
|
||||
def peek_token(self): ...
|
||||
def get_token(self): ...
|
||||
def need_more_tokens(self): ...
|
||||
def fetch_more_tokens(self): ...
|
||||
def next_possible_simple_key(self): ...
|
||||
def stale_possible_simple_keys(self): ...
|
||||
def save_possible_simple_key(self): ...
|
||||
def remove_possible_simple_key(self): ...
|
||||
def unwind_indent(self, column): ...
|
||||
def add_indent(self, column): ...
|
||||
def fetch_stream_start(self): ...
|
||||
def fetch_stream_end(self): ...
|
||||
def fetch_directive(self): ...
|
||||
def fetch_document_start(self): ...
|
||||
def fetch_document_end(self): ...
|
||||
def fetch_document_indicator(self, TokenClass): ...
|
||||
def fetch_flow_sequence_start(self): ...
|
||||
def fetch_flow_mapping_start(self): ...
|
||||
def fetch_flow_collection_start(self, TokenClass): ...
|
||||
def fetch_flow_sequence_end(self): ...
|
||||
def fetch_flow_mapping_end(self): ...
|
||||
def fetch_flow_collection_end(self, TokenClass): ...
|
||||
def fetch_flow_entry(self): ...
|
||||
def fetch_block_entry(self): ...
|
||||
def fetch_key(self): ...
|
||||
def fetch_value(self): ...
|
||||
def fetch_alias(self): ...
|
||||
def fetch_anchor(self): ...
|
||||
def fetch_tag(self): ...
|
||||
def fetch_literal(self): ...
|
||||
def fetch_folded(self): ...
|
||||
def fetch_block_scalar(self, style): ...
|
||||
def fetch_single(self): ...
|
||||
def fetch_double(self): ...
|
||||
def fetch_flow_scalar(self, style): ...
|
||||
def fetch_plain(self): ...
|
||||
def check_directive(self): ...
|
||||
def check_document_start(self): ...
|
||||
def check_document_end(self): ...
|
||||
def check_block_entry(self): ...
|
||||
def check_key(self): ...
|
||||
def check_value(self): ...
|
||||
def check_plain(self): ...
|
||||
def scan_to_next_token(self): ...
|
||||
def scan_directive(self): ...
|
||||
def scan_directive_name(self, start_mark): ...
|
||||
def scan_yaml_directive_value(self, start_mark): ...
|
||||
def scan_yaml_directive_number(self, start_mark): ...
|
||||
def scan_tag_directive_value(self, start_mark): ...
|
||||
def scan_tag_directive_handle(self, start_mark): ...
|
||||
def scan_tag_directive_prefix(self, start_mark): ...
|
||||
def scan_directive_ignored_line(self, start_mark): ...
|
||||
def scan_anchor(self, TokenClass): ...
|
||||
def scan_tag(self): ...
|
||||
def scan_block_scalar(self, style): ...
|
||||
def scan_block_scalar_indicators(self, start_mark): ...
|
||||
def scan_block_scalar_ignored_line(self, start_mark): ...
|
||||
def scan_block_scalar_indentation(self): ...
|
||||
def scan_block_scalar_breaks(self, indent): ...
|
||||
def scan_flow_scalar(self, style): ...
|
||||
ESCAPE_REPLACEMENTS = ... # type: Any
|
||||
ESCAPE_CODES = ... # type: Any
|
||||
def scan_flow_scalar_non_spaces(self, double, start_mark): ...
|
||||
def scan_flow_scalar_spaces(self, double, start_mark): ...
|
||||
def scan_flow_scalar_breaks(self, double, start_mark): ...
|
||||
def scan_plain(self): ...
|
||||
def scan_plain_spaces(self, indent, start_mark): ...
|
||||
def scan_tag_handle(self, name, start_mark): ...
|
||||
def scan_tag_uri(self, name, start_mark): ...
|
||||
def scan_uri_escapes(self, name, start_mark): ...
|
||||
def scan_line_break(self): ...
|
||||
27
third_party/2/yaml/serializer.pyi
vendored
27
third_party/2/yaml/serializer.pyi
vendored
@@ -1,27 +0,0 @@
|
||||
# Stubs for yaml.serializer (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from yaml.error import YAMLError
|
||||
|
||||
class SerializerError(YAMLError): ...
|
||||
|
||||
class Serializer:
|
||||
ANCHOR_TEMPLATE = ... # type: Any
|
||||
use_encoding = ... # type: Any
|
||||
use_explicit_start = ... # type: Any
|
||||
use_explicit_end = ... # type: Any
|
||||
use_version = ... # type: Any
|
||||
use_tags = ... # type: Any
|
||||
serialized_nodes = ... # type: Any
|
||||
anchors = ... # type: Any
|
||||
last_anchor_id = ... # type: Any
|
||||
closed = ... # type: Any
|
||||
def __init__(self, encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> None: ...
|
||||
def open(self): ...
|
||||
def close(self): ...
|
||||
def serialize(self, node): ...
|
||||
def anchor_node(self, node): ...
|
||||
def generate_anchor(self, node): ...
|
||||
def serialize_node(self, node, parent, index): ...
|
||||
97
third_party/2/yaml/tokens.pyi
vendored
97
third_party/2/yaml/tokens.pyi
vendored
@@ -1,97 +0,0 @@
|
||||
# Stubs for yaml.tokens (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class Token:
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, start_mark, end_mark) -> None: ...
|
||||
|
||||
class DirectiveToken(Token):
|
||||
id = ... # type: Any
|
||||
name = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, name, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class DocumentStartToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class DocumentEndToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class StreamStartToken(Token):
|
||||
id = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
def __init__(self, start_mark=..., end_mark=..., encoding=...) -> None: ...
|
||||
|
||||
class StreamEndToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class BlockSequenceStartToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class BlockMappingStartToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class BlockEndToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class FlowSequenceStartToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class FlowMappingStartToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class FlowSequenceEndToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class FlowMappingEndToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class KeyToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class ValueToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class BlockEntryToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class FlowEntryToken(Token):
|
||||
id = ... # type: Any
|
||||
|
||||
class AliasToken(Token):
|
||||
id = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class AnchorToken(Token):
|
||||
id = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class TagToken(Token):
|
||||
id = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class ScalarToken(Token):
|
||||
id = ... # type: Any
|
||||
value = ... # type: Any
|
||||
plain = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
style = ... # type: Any
|
||||
def __init__(self, value, plain, start_mark, end_mark, style=...) -> None: ...
|
||||
Reference in New Issue
Block a user