Skip to content

Commit b1e7fab

Browse files
dmitriplotnikovcopybara-github
authored andcommitted
Update YAML configuration and constructors to use type and overload signatures
PiperOrigin-RevId: 928757149
1 parent 78c8096 commit b1e7fab

13 files changed

Lines changed: 258 additions & 129 deletions

cel_expr_python/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ pybind_library(
7070
"@com_google_cel_cpp//common:function_descriptor",
7171
"@com_google_cel_cpp//common:kind",
7272
"@com_google_cel_cpp//common:minimal_descriptor_pool",
73+
"@com_google_cel_cpp//common:signature",
7374
"@com_google_cel_cpp//common:source",
7475
"@com_google_cel_cpp//common:type",
7576
"@com_google_cel_cpp//common:type_kind",

cel_expr_python/cel.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class FunctionDecl:
3939
def __init__(self, name: str, overloads: Sequence[Overload]) -> None: ...
4040

4141
class Overload:
42-
def __init__(self, overload_id: str, return_type: Type = ..., parameters: Sequence[Type] = ..., is_member: bool = ..., impl: Callable[..., Any] = ...) -> None: ...
42+
def __init__(self, id: str | None = ..., return_type: Type = ..., parameters: Sequence[Type] = ..., is_member: bool = ..., impl: Callable[..., Any] = ..., signature: str | None = ...) -> None: ...
4343

4444
class Type:
4545
BOOL: ClassVar[Type] = ...
@@ -57,7 +57,7 @@ class Type:
5757
TYPE: ClassVar[Type] = ...
5858
UINT: ClassVar[Type] = ...
5959
UNKNOWN: ClassVar[Type] = ...
60-
def __init__(self, name: str) -> None: ...
60+
def __init__(self, signature: str) -> None: ...
6161
@staticmethod
6262
def AbstractType(name: str, params: Sequence[Type] = ...) -> Type: ...
6363
@staticmethod

0 commit comments

Comments
 (0)