Skip to content

Commit ec5b97a

Browse files
committed
type check
1 parent f53d149 commit ec5b97a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ddtrace/llmobs/_experiment.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ def as_dataframe(self) -> None:
182182
column_tuples = set()
183183
data_rows = []
184184
for record in self._records:
185-
flat_record = {}
185+
flat_record = {} # type: Dict[Any, Any]
186186

187187
input_data = record.get("input_data", {})
188188
if isinstance(input_data, dict):
189189
for k, v in input_data.items():
190190
flat_record[("input_data", k)] = v
191191
column_tuples.add(("input_data", k))
192192
else:
193-
flat_record[("input_data", "")] = input_data # Use empty string for single input
193+
flat_record[("input_data", "")] = input_data
194194
column_tuples.add(("input_data", ""))
195195

196196
expected_output = record.get("expected_output", {})
@@ -199,7 +199,7 @@ def as_dataframe(self) -> None:
199199
flat_record[("expected_output", k)] = v
200200
column_tuples.add(("expected_output", k))
201201
else:
202-
flat_record[("expected_output", "")] = expected_output # Use empty string for single output
202+
flat_record[("expected_output", "")] = expected_output
203203
column_tuples.add(("expected_output", ""))
204204

205205
for k, v in record.get("metadata", {}).items():

0 commit comments

Comments
 (0)