firecrown.metadata.two_point.YAMLSerializable

firecrown.metadata.two_point.YAMLSerializable#

class firecrown.metadata.two_point.YAMLSerializable[source]#

Bases: object

Protocol for classes that can be serialized to and from YAML.

Public Methods:

to_yaml()

Return the YAML representation of the object.

from_yaml(yaml_str)

Load the object from YAML.


classmethod from_yaml(yaml_str)[source]#

Load the object from YAML.

Parameters:

yaml_str (str) –

Return type:

TypeVar(ST)

to_yaml()[source]#

Return the YAML representation of the object.

Parameters:

self (TypeVar(ST)) –

Return type:

str