From 1330b881244c1e0e5fb05df9a4d1ff16b67be7d5 Mon Sep 17 00:00:00 2001 From: Vint Sanghyeok Lee Date: Sat, 3 Jan 2026 02:13:00 +0900 Subject: [PATCH 1/2] fix(pyi): correct cel.evaluate call signature The implementation changed in 54d0d682f02c1b87313d8ea59f426cdf838f638b, but the pyi definition was not updated accordingly. --- python/cel/cel.pyi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python/cel/cel.pyi b/python/cel/cel.pyi index c426a70..80706f3 100644 --- a/python/cel/cel.pyi +++ b/python/cel/cel.pyi @@ -35,8 +35,6 @@ class Context: def evaluate( expression: str, context: Optional[Union[Dict[str, Any], Context]] = None, - *, - mode: Union[Literal["python", "strict"], "EvaluationMode", str] = "python", ) -> Any: """ Evaluate a CEL expression. @@ -44,8 +42,6 @@ def evaluate( Args: expression: The CEL expression to evaluate context: Optional context with variables and functions - mode: Evaluation mode - either "python" (default) for mixed arithmetic - or "strict" for strict type matching Returns: The result of evaluating the expression From 09ec70654501bba5ef6ce97f032b4fc401c22cde Mon Sep 17 00:00:00 2001 From: Vint Sanghyeok Lee Date: Sat, 3 Jan 2026 02:45:54 +0900 Subject: [PATCH 2/2] Remove import EvaluationMode --- python/cel/cel.pyi | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/cel/cel.pyi b/python/cel/cel.pyi index 80706f3..b47f1d1 100644 --- a/python/cel/cel.pyi +++ b/python/cel/cel.pyi @@ -4,8 +4,6 @@ Type stubs for the CEL Rust extension module. from typing import Any, Callable, Dict, Literal, Optional, Union, overload -from .evaluation_modes import EvaluationMode - class Context: """CEL evaluation context for variables and functions."""