Skip to content

Commit d6559d2

Browse files
committed
fix: fix linting errors add future annotations import to all modules
1 parent 72a63ec commit d6559d2

9 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/knowcode/graph_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Graph builder that orchestrates parsing and constructs the semantic graph."""
22

3+
from __future__ import annotations
34
from pathlib import Path
45
from typing import Optional
56

src/knowcode/knowledge_store.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Knowledge store with JSON persistence and querying."""
22

3+
from __future__ import annotations
4+
35
import json
46
from dataclasses import asdict
57
from pathlib import Path

src/knowcode/parsers/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Base parser using Tree-sitter."""
22

3+
from __future__ import annotations
34
from pathlib import Path
45
from typing import Any, Optional
56

src/knowcode/parsers/markdown_parser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
"""Markdown document parser."""
22

3+
from __future__ import annotations
4+
35
import re
46
from pathlib import Path
7+
from typing import Any
58

69
from knowcode.models import (
710
Entity,

src/knowcode/parsers/python_parser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
"""Python source code parser using AST."""
1+
"""Python parser using standard ast module."""
2+
3+
from __future__ import annotations
4+
25

36
import ast
47
from pathlib import Path

src/knowcode/parsers/yaml_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""YAML configuration file parser."""
22

3+
from __future__ import annotations
34
from pathlib import Path
45
from typing import Any
56

src/knowcode/scanner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""File scanner with gitignore support."""
22

3+
from __future__ import annotations
34
import os
45
from dataclasses import dataclass
56
from pathlib import Path

src/knowcode/signals.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Runtime signal processing (e.g., coverage, traces)."""
22

3+
from __future__ import annotations
34
import xml.etree.ElementTree as ET
45
from pathlib import Path
56

src/knowcode/temporal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Temporal analysis of git history."""
22

3+
from __future__ import annotations
4+
from dataclasses import dataclass
35
from datetime import datetime, timezone
46
from pathlib import Path
57

0 commit comments

Comments
 (0)