Skip to content

Add Python support for CEL optional values and types. - #131

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1018344380
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1018344380

Conversation

@copybara-service

Copy link
Copy Markdown

Add Python support for CEL optional values and types.

Expose cel.Optional (of, none, has_value, value, or_value)
and cel.Type.Optional / cel.Type.OPTIONAL, and convert between
cel::OptionalValue and cel.Optional in CelValueToPyObject and
PyObjectToCelValue so optional values can be evaluated, passed in
activations, and accepted or returned by Python functions.

@copybara-service
copybara-service Bot force-pushed the test_1018344380 branch 3 times, most recently from 4e9ef7a to 15f3567 Compare November 12, 2026 02:10
Expose `cel.Optional` (`of`, `none`, `has_value`, `value`, `or_value`)
and `cel.Type.Optional` / `cel.Type.OPTIONAL`, and convert between
`cel::OptionalValue` and `cel.Optional` in `CelValueToPyObject` and
`PyObjectToCelValue` so optional values can be evaluated, passed in
activations, and accepted or returned by Python functions.

PiperOrigin-RevId: 1018344380
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