Skip to content

Commit e371836

Browse files
committed
Formatting and typing
Signed-off-by: Louis Mandel <[email protected]>
1 parent 622cea4 commit e371836

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/pdl/pdl_context.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def __repr__(self): # pyright: ignore
135135
ret += ",".join([i.__repr__() for i in self.context.result()])
136136
return ret + "]"
137137

138+
138139
def ensure_context(context: dict | list | PDLContext) -> PDLContext:
139140
match context:
140141
case dict():
@@ -147,6 +148,7 @@ def ensure_context(context: dict | list | PDLContext) -> PDLContext:
147148
raise TypeError(f"'{type(context)}' object is not a valid context")
148149
return ctx
149150

151+
150152
def deserialize(
151153
context: list[dict[str, Any]],
152154
) -> DependentContext: # Only support dependent for now

src/pdl/pdl_interpreter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,9 @@ def process_call_model(
14291429
"pdl__model_input": model_input,
14301430
}
14311431
)
1432-
model_input = [{k: v for k, v in m.items() if k != "defsite"} for m in model_input]
1432+
model_input = [
1433+
{k: v for k, v in m.items() if k != "defsite"} for m in model_input
1434+
]
14331435

14341436
# Execute model call
14351437
litellm_params = {}

0 commit comments

Comments
 (0)