Skip to content

Require exactly one type parameter for optional_type in cel-python - #154

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

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

Conversation

@copybara-service

Copy link
Copy Markdown

Require exactly one type parameter for optional_type in cel-python

Updates PyCelType::AbstractType and PyCelType::FromTypeInfo to reject
optional_type without exactly one type parameter, matching CEL type signature
and cel-cpp validation rules (cel.Type.OPTIONAL and cel.Type.Optional()
continue to construct optional_type<dyn>). Updates cel_test.py accordingly.

Updates `PyCelType::AbstractType` and `PyCelType::FromTypeInfo` to reject
`optional_type` without exactly one type parameter, matching CEL type signature
and `cel-cpp` validation rules (`cel.Type.OPTIONAL` and `cel.Type.Optional()`
continue to construct `optional_type<dyn>`). Updates `cel_test.py` accordingly.

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