Skip to content

Commit d4e99fd

Browse files
fix: type hints
Signed-off-by: thiswillbeyourgithub <[email protected]>
1 parent 81b36cb commit d4e99fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wdoc/wdoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,7 @@ def source_replace(
20672067
# if out_file is specified then we write the summary there too.
20682068
if self.out_file:
20692069

2070-
def output_handler(text: str) -> None:
2070+
def output_handler(text: str) -> str:
20712071
# the raw markdown is written to the file
20722072
# and the rendered markdown is printed on screen
20732073
with open(self.out_file, "a") as f:
@@ -2076,7 +2076,7 @@ def output_handler(text: str) -> None:
20762076

20772077
else:
20782078

2079-
def output_handler(text: str) -> None:
2079+
def output_handler(text: str) -> str:
20802080
return md_printer(text)
20812081

20822082
# display sources (i.e. documents used to answer)

0 commit comments

Comments
 (0)