Skip to content

Commit a6822c3

Browse files
fix: remove unused imports and dead variable in eval package
config.py: remove unused 'import re' and unused 'first_indent' variable in _parse_block (first_content was the only one read). dataset.py: remove unused TraceStore import. Co-authored-by: Ona <no-reply@ona.com>
1 parent cb157f4 commit a6822c3

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/agent_trace/eval/config.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from __future__ import annotations
88

9-
import re
109
from dataclasses import dataclass, field
1110
from pathlib import Path
1211

@@ -94,9 +93,7 @@ def _parse_block(start: int, base_indent: int) -> tuple[int, object]:
9493
if i >= len(lines):
9594
return i, {}
9695

97-
first_line = lines[i]
98-
first_indent = _indent(first_line)
99-
first_content = first_line.strip()
96+
first_content = lines[i].strip()
10097

10198
# Determine block type from first non-blank line
10299
if first_content.startswith("- "):

src/agent_trace/eval/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from dataclasses import asdict, dataclass, field
1515
from pathlib import Path
1616

17-
from ..store import TraceStore
17+
1818

1919

2020
@dataclass

0 commit comments

Comments
 (0)