Skip to content

Deprecate Variable hooks in favor of custom Variable types.#5415

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_897659221
Apr 21, 2026
Merged

Deprecate Variable hooks in favor of custom Variable types.#5415
copybara-service[bot] merged 1 commit intomainfrom
test_897659221

Conversation

@copybara-service
Copy link
Copy Markdown

Deprecate Variable hooks in favor of custom Variable types.

This change adds DeprecationWarnings when Variable hooks (on_get_value, on_set_value, etc.) are used. The recommended approach is now to create a custom Variable subclass and overload methods like get_value and set_value. The summary test has been updated to reflect this new pattern.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 14, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service Bot force-pushed the test_897659221 branch 7 times, most recently from 330cf03 to 87f3149 Compare April 21, 2026 17:51
This change adds DeprecationWarnings when Variable hooks (on_get_value, on_set_value, etc.) are used. The recommended approach is now to create a custom Variable subclass and overload methods like `get_value` and `set_value`. The summary test has been updated to reflect this new pattern.

PiperOrigin-RevId: 903324071
@copybara-service copybara-service Bot merged commit a13993f into main Apr 21, 2026
0 of 2 checks passed
@copybara-service copybara-service Bot deleted the test_897659221 branch April 21, 2026 18:06
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