Skip to content

Support dyn and type parameters in Python function overloads. - #129

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

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

Conversation

@copybara-service

Copy link
Copy Markdown

Support dyn and type parameters in Python function overloads.

The C++ CEL runtime function dispatcher uses cel::Kind::kAny as its
wildcard parameter kind. Normalize kDyn and kTypeParam parameter
kinds to kAny across environment, activation, and extension function
registrations, preserve kTypeParam through PyCelType and
PyObjectToCelValue, and treat cel.Type.DYN as assignable from any
CEL type.

@copybara-service
copybara-service Bot force-pushed the test_1017931887 branch 5 times, most recently from 72f32f6 to 9dc2fe8 Compare November 12, 2026 00:27
The C++ CEL runtime function dispatcher uses `cel::Kind::kAny` as its
wildcard parameter kind. Normalize `kDyn` and `kTypeParam` parameter
kinds to `kAny` across environment, activation, and extension function
registrations, preserve `kTypeParam` through `PyCelType` and
`PyObjectToCelValue`, and treat `cel.Type.DYN` as assignable from any
CEL type.

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