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