Skip to content

Commit 1228310

Browse files
committed
typing
1 parent f4c4827 commit 1228310

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

guardrails/classes/history/call_inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def from_interface(cls, i_call_inputs: ICallInputs) -> "CallInputs":
6363
return cls(
6464
llm_api=None,
6565
llm_output=i_call_inputs.llm_output,
66-
messages=i_call_inputs.messages,
66+
messages=i_call_inputs.messages, # type: ignore
6767
prompt_params=i_call_inputs.prompt_params,
6868
num_reasks=i_call_inputs.num_reasks,
6969
metadata=i_call_inputs.metadata,

guardrails/classes/history/inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def to_dict(self) -> Dict[str, Any]:
9898
@classmethod
9999
def from_interface(cls, i_inputs: IInputs) -> "Inputs":
100100
deserialized_messages = None
101-
if i_inputs.messages:
101+
if i_inputs.messages: # type: ignore
102102
deserialized_messages = []
103-
for msg in i_inputs.messages:
103+
for msg in i_inputs.messages: # type: ignore
104104
ser_msg = {**msg}
105105
content = ser_msg.get("content")
106106
if content:

0 commit comments

Comments
 (0)