From e3ff5aa8564f2fe986cef2df460a83b668c43f1b Mon Sep 17 00:00:00 2001 From: Tim Schneider Date: Fri, 3 Jan 2025 16:33:02 +0100 Subject: [PATCH] refactor annotation --- eu_einvoice/european_e_invoice/custom/sales_invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eu_einvoice/european_e_invoice/custom/sales_invoice.py b/eu_einvoice/european_e_invoice/custom/sales_invoice.py index be722ca..af6e650 100644 --- a/eu_einvoice/european_e_invoice/custom/sales_invoice.py +++ b/eu_einvoice/european_e_invoice/custom/sales_invoice.py @@ -781,7 +781,7 @@ def download_pdf( frappe.local.response.filecontent = zugferd_pdf -def _create_symlink_to_icc_profile(): +def _create_symlink_to_icc_profile() -> None: """Create a symlink to the ICC profile in the Ghostscript installation.""" import os import re @@ -841,7 +841,7 @@ def _convert_pdf_to_pdfa(pdf_data: bytes) -> bytes: return pdfa_data -def _is_ghostscript_installed(): +def _is_ghostscript_installed() -> bool: """Check if Ghostscript is installed on the system.""" import shutil