Skip to content

Return result dataclasses from DP mechanism __call__ methods#44

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/935368864
Open

Return result dataclasses from DP mechanism __call__ methods#44
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/935368864

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 20, 2026

Copy link
Copy Markdown

Return result dataclasses from DP mechanism call methods

Wrap all DPMechanism.call return types in typed result dataclasses
to enable future extensibility (e.g., extra measured information, or additional auxialiary outputs) without breaking existing callers or
serialized objects. New optional fields can be added to any result
class with default=None.

Wrap all DPMechanism.__call__ return types in typed result dataclasses
to enable future extensibility (e.g., extra measured information, or additional auxialiary outputs) without breaking existing callers or
serialized objects. New optional fields can be added to any result
class with default=None.

PiperOrigin-RevId: 935368864
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.

0 participants