Fix mypy type errors in reporting module
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user