extended_data.primitives.formats.yaml.tag_classes

This module provides classes for handling YAML tagged objects and pairs.

It includes a wrapper class for YAML tagged objects and a class to represent YAML pairs.

Module Contents

Classes

YamlTagged

Wrapper class for YAML tagged objects.

YamlPairs

Class to represent YAML pairs.

LiteralScalarString

String subclass that will be represented as a literal block scalar in YAML.

API

class extended_data.primitives.formats.yaml.tag_classes.YamlTagged(tag: str, wrapped: Any)

Bases: extended_data.primitives.formats.yaml.tag_classes._ObjectProxyBase

Wrapper class for YAML tagged objects.

Initialization

Initialize YamlTagged object.

Args: tag (str): The tag for the YAML object. wrapped (Any): The original object to wrap.

property tag: str

Get the tag of the YamlTagged object.

Returns: str: The tag of the object.

class extended_data.primitives.formats.yaml.tag_classes.YamlPairs

Bases: list[typing.Any]

Class to represent YAML pairs.

Initialization

Initialize self. See help(type(self)) for accurate signature.

class extended_data.primitives.formats.yaml.tag_classes.LiteralScalarString

Bases: str

String subclass that will be represented as a literal block scalar in YAML.

This class is used to preserve multiline strings and command strings in YAML output using the literal block style (|).

Initialization

Initialize self. See help(type(self)) for accurate signature.