示例#1
0
def unknown_sequence_node():
    ynode = yaml.SequenceNode('tag:yaml.org,2002:seq', [])
    return yatiml.UnknownNode(Recognizer({}), ynode)
示例#2
0
def unknown_scalar_node():
    ynode = yaml.ScalarNode('tag:yaml.org,2002:int', '23')
    return yatiml.UnknownNode(Recognizer({}), ynode)
示例#3
0
def unknown_node(yaml_node):
    return yatiml.UnknownNode(Recognizer({}), yaml_node)
示例#4
0
文件: conftest.py 项目: yatiml/yatiml
def unknown_sequence_node(recognizer: Recognizer) -> yatiml.UnknownNode:
    ynode = yaml.SequenceNode('tag:yaml.org,2002:seq', [])
    return yatiml.UnknownNode(recognizer, ynode)
示例#5
0
文件: conftest.py 项目: yatiml/yatiml
def unknown_scalar_node(recognizer: Recognizer) -> yatiml.UnknownNode:
    ynode = yaml.ScalarNode('tag:yaml.org,2002:int', '23')
    return yatiml.UnknownNode(recognizer, ynode)
示例#6
0
文件: conftest.py 项目: yatiml/yatiml
def unknown_node(recognizer: Recognizer,
                 yaml_node: yaml.Node) -> yatiml.UnknownNode:
    return yatiml.UnknownNode(recognizer, yaml_node)