From bda05f2101eca2d2fb71026b047deea306162522 Mon Sep 17 00:00:00 2001 From: Karol Zlot <11590960+karolzlot@users.noreply.github.com> Date: Sun, 12 Jun 2022 10:44:24 +0200 Subject: [PATCH] return None --- docxtpl/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docxtpl/template.py b/docxtpl/template.py index a5ff6fa..f2d39ba 100644 --- a/docxtpl/template.py +++ b/docxtpl/template.py @@ -712,7 +712,7 @@ class DocxTemplate(object): return self.docx._part.relate_to(url, REL_TYPE.HYPERLINK, is_external=True) - def save(self, filename: Union[IO[bytes], str, PathLike[str]], *args, **kwargs): + def save(self, filename: Union[IO[bytes], str, PathLike[str]], *args, **kwargs) -> None: # case where save() is called without doing rendering # ( user wants only to replace image/embedded/zipname ) if not self.is_saved and not self.is_rendered: