Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions python/cel/cel.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down Expand Up @@ -35,17 +33,13 @@ 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.

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
Expand Down