From 1d09cb5b9cf7a76d6b30d8e701dff0f2fffc663f Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Mon, 24 Jun 2019 13:18:27 +0200 Subject: [PATCH] Fix typing for optional data argument Co-Authored-By: Jaime van Kessel --- plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py index f1fd6f8b7c..d55fd8ab28 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py +++ b/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: