return None

This commit is contained in:
Karol Zlot 2022-06-12 10:44:24 +02:00
parent 25a6e42850
commit bda05f2101

View File

@ -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: