Add FullLoader and FullConstructor classes to yaml (#3035)

This commit is contained in:
markedwards
2019-06-06 16:47:39 +01:00
committed by Sebastian Rittau
parent db5fc492aa
commit 5c94b58752
2 changed files with 21 additions and 1 deletions

View File

@@ -50,6 +50,23 @@ class SafeConstructor(BaseConstructor):
def construct_yaml_object(self, node, cls): ...
def construct_undefined(self, node): ...
class FullConstructor(SafeConstructor):
def construct_python_str(self, node): ...
def construct_python_unicode(self, node): ...
def construct_python_bytes(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, unsafe=...): ...
def find_python_name(self, name, mark, unsafe=...): ...
def construct_python_name(self, suffix, node): ...
def construct_python_module(self, suffix, node): ...
def make_python_instance(self, suffix, node, args=..., kwds=..., newobj=..., unsafe=...): ...
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): ...
class Constructor(SafeConstructor):
def construct_python_str(self, node): ...
def construct_python_unicode(self, node): ...

View File

@@ -2,12 +2,15 @@ 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.constructor import BaseConstructor, FullConstructor, SafeConstructor, Constructor
from yaml.resolver import BaseResolver, Resolver
class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver):
def __init__(self, stream) -> None: ...
class FullLoader(Reader, Scanner, Parser, Composer, FullConstructor, Resolver):
def __init__(self, stream) -> None: ...
class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver):
def __init__(self, stream) -> None: ...