Browse Source

Fix typing for optional data argument

Co-Authored-By: Jaime van Kessel <nallath@gmail.com>
ChrisTerBeke 5 years ago
parent
commit
1d09cb5b9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py

+ 1 - 1
plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py

@@ -100,7 +100,7 @@ class CloudApiClient:
     #  \param cluster_id: The ID of the cluster.
     #  \param cluster_job_id: The ID of the print job within the cluster.
     #  \param action: The name of the action to execute.
-    def doPrintJobAction(self, cluster_id: str, cluster_job_id: str, action: str, data: Dict[str, Any] = None) -> None:
+    def doPrintJobAction(self, cluster_id: str, cluster_job_id: str, action: str, data: Optional[Dict[str, Any]] = None) -> None:
         body = b""
         if data:
             try: