Skip to content

Add additional support for representing objects in YAML serialization.#79

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_462662473
Open

Add additional support for representing objects in YAML serialization.#79
copybara-service[bot] wants to merge 1 commit intomainfrom
test_462662473

Conversation

@copybara-service
Copy link
Copy Markdown

Add additional support for representing objects in YAML serialization.

This makes most function/class references one line (and clarifies type), which I think helps with readability in the serialized config, and adds support for serializing other Python objects based on non-private keys in dict.

Also added (very basic) support for deserializing functions/classes in the test, but didn't add any support for deserializing other Python objects since I think the primary purpose of this is debug oriented and storing all (including private and dundered) fields of an objects feels excessive for that purpose.

This makes most function/class references one line (and clarifies type), which I think helps with readability in the serialized config, and adds support for serializing other Python objects based on non-private keys in __dict__.

Also added (very basic) support for deserializing functions/classes in the test, but didn't add any support for deserializing other Python objects since I think the primary purpose of this is debug oriented and storing all (including private and dundered) fields of an objects feels excessive for that purpose.

PiperOrigin-RevId: 462662473
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant