Fix mypy type errors in reporting module

This commit is contained in:
2026-01-29 18:06:13 +00:00
parent c016320b71
commit 6830b3158c
8 changed files with 576 additions and 3 deletions

View File

@@ -75,7 +75,8 @@ class PDFRenderer:
"""
try:
HTML = self._get_weasyprint()
return HTML(string=html).write_pdf()
result: bytes = HTML(string=html).write_pdf()
return result
except PDFConversionError:
raise
except Exception as e: