refactor(types): Phase 4 type hint sweep — core modules
This commit is contained in:
@@ -26,6 +26,7 @@ context block that replaces full file contents in the initial <context> send.
|
||||
import ast
|
||||
import re
|
||||
from pathlib import Path
|
||||
from typing import Callable
|
||||
|
||||
# ------------------------------------------------------------------ per-type extractors
|
||||
|
||||
@@ -138,7 +139,7 @@ def _summarise_generic(path: Path, content: str) -> str:
|
||||
return "\n".join(parts)
|
||||
# ------------------------------------------------------------------ dispatch
|
||||
|
||||
_SUMMARISERS = {
|
||||
_SUMMARISERS: dict[str, Callable[[Path, str], str]] = {
|
||||
".py": _summarise_python,
|
||||
".toml": _summarise_toml,
|
||||
".md": _summarise_markdown,
|
||||
|
||||
Reference in New Issue
Block a user