File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ class YamlAble(AbstractYamlAble):
5555 metaclass magic).
5656
5757 The behaviour is very similar though:
58+ - inherit from `YamlAble` or virtually inherit from it using YamlAble.register(cls)
5859 - fill the `__yaml_tag_suffix__` either directly or using the `@yaml_info()` decorator
59- - optionally implement `__from_yaml_dict__` (class method called during decoding) and/or `__to_yaml_dict__`
60+ - optionally override `__from_yaml_dict__` (class method called during decoding) and/or `__to_yaml_dict__`
6061 (instance method called during encoding) if you wish to have control on the process, for example to only dump part
6162 of the attributes or perform some custom instance creation. Note that default implementation relies on `vars(self)`
6263 for dumping and on `cls(**dct)` for loading.
You can’t perform that action at this time.
0 commit comments