Browse Source

Add missing typing

CURA-12138
Erwan MATHIEU 5 months ago
parent
commit
fe5b4bac24
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plugins/3MFWriter/ThreeMFWorkspaceWriter.py

+ 2 - 1
plugins/3MFWriter/ThreeMFWorkspaceWriter.py

@@ -9,6 +9,7 @@ from threading import Lock
 import zipfile
 from typing import Dict, Any
 from pathlib import Path
+from zipfile import ZipFile
 
 from UM.Application import Application
 from UM.Logger import Logger
@@ -199,7 +200,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
             return
 
     @staticmethod
-    def _writeLogFile(archive):
+    def _writeLogFile(archive: ZipFile) -> None:
         """Helper function that writes the Cura log file to the archive.
 
         :param archive: The archive to write to.