Skip to content

Commit 86c4b1f

Browse files
committed
🧹 fmt
1 parent 421d96e commit 86c4b1f

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

‎python/cel/cel.pyi‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,39 @@ from typing import Any, Dict, Union, Optional, Callable, overload
66

77
class Context:
88
"""CEL evaluation context for variables and functions."""
9-
9+
1010
@overload
1111
def __init__(self) -> None: ...
12-
13-
@overload
12+
@overload
1413
def __init__(self, variables: Dict[str, Any]) -> None: ...
15-
1614
@overload
1715
def __init__(
18-
self,
16+
self,
1917
variables: Optional[Dict[str, Any]] = None,
2018
*,
21-
functions: Optional[Dict[str, Callable[..., Any]]] = None
19+
functions: Optional[Dict[str, Callable[..., Any]]] = None,
2220
) -> None: ...
23-
2421
def add_variable(self, name: str, value: Any) -> None:
2522
"""Add a variable to the context."""
2623
...
27-
24+
2825
def add_function(self, name: str, func: Callable[..., Any]) -> None:
2926
"""Add a function to the context."""
3027
...
31-
28+
3229
def update(self, variables: Dict[str, Any]) -> None:
3330
"""Update context with variables from a dictionary."""
3431
...
3532

3633
def evaluate(expression: str, context: Optional[Union[Dict[str, Any], Context]] = None) -> Any:
3734
"""
3835
Evaluate a CEL expression.
39-
36+
4037
Args:
4138
expression: The CEL expression to evaluate
4239
context: Optional context with variables and functions
43-
40+
4441
Returns:
4542
The result of evaluating the expression
4643
"""
47-
...
44+
...

0 commit comments

Comments
 (0)