Fix typing for optional data argument

Co-Authored-By: Jaime van Kessel <nallath@gmail.com>
This commit is contained in:
ChrisTerBeke 2019-06-24 13:18:27 +02:00 committed by GitHub
parent 1ab109ade0
commit 1d09cb5b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ class CloudApiClient:
# \param cluster_id: The ID of the cluster. # \param cluster_id: The ID of the cluster.
# \param cluster_job_id: The ID of the print job within the cluster. # \param cluster_job_id: The ID of the print job within the cluster.
# \param action: The name of the action to execute. # \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"" body = b""
if data: if data:
try: try: