Skip to content

Commit bf93899

Browse files
Zie619claude
andcommitted
fix: resolve lint and typecheck errors in validator.py
Remove unused `import jsonschema` (F401) and add explicit type annotation for json.load() return value to satisfy mypy. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4ad246b commit bf93899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ai_bom/utils/validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
from pathlib import Path
77
from typing import Any
88

9-
import jsonschema
109
from jsonschema import validate
1110

1211

1312
def get_schema() -> dict[str, Any]:
1413
"""Load the AI-BOM JSON schema."""
1514
schema_path = Path(__file__).parent.parent / "schema" / "bom-schema.json"
1615
with open(schema_path, encoding="utf-8") as f:
17-
return json.load(f)
16+
result: dict[str, Any] = json.load(f)
17+
return result
1818

1919

2020
def validate_output(data: dict[str, Any]) -> None:

0 commit comments

Comments
 (0)