Skip to content

Commit 9fc51c0

Browse files
refactor: use wdocSummary dataclass for type hinting in summarization tasks
Co-authored-by: aider (openrouter/anthropic/claude-sonnet-4) <[email protected]>
1 parent 92f5c47 commit 9fc51c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wdoc/utils/tasks/summarize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def summarize_documents(
133133
in_import_mode: bool,
134134
out_file: Optional[str],
135135
wdoc_version: str,
136-
) -> dict:
136+
) -> wdocSummary:
137137
"""
138138
Orchestrate the complete document summarization process with optional recursion.
139139

wdoc/wdoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
semantic_batching,
8484
sieve_documents,
8585
)
86-
from wdoc.utils.tasks.summarize import summarize_documents
86+
from wdoc.utils.tasks.summarize import summarize_documents, wdocSummary
8787

8888
logger.info("Starting wdoc")
8989

@@ -668,7 +668,7 @@ def print_exception(exc_type, exc_value, exc_traceback):
668668
self.interaction_settings
669669
)
670670

671-
def summary_task(self) -> dict:
671+
def summary_task(self) -> wdocSummary:
672672
docs_tkn_cost = {}
673673
for doc in self.loaded_docs:
674674
meta = doc.metadata["path"]

0 commit comments

Comments
 (0)