printer_type has a default value so cannot be Optional

This commit is contained in:
ChrisTerBeke 2019-05-14 21:01:34 +02:00
parent 70c679859a
commit 56c1da2580
No known key found for this signature in database
GPG key ID: A49F1AB9D7E0C263

View file

@ -20,7 +20,7 @@ class CloudClusterResponse(BaseCloudModel):
# \param printer_type: The machine type of the host printer.
def __init__(self, cluster_id: str, host_guid: str, host_name: str, is_online: bool, status: str,
host_internal_ip: Optional[str] = None, host_version: Optional[str] = None,
friendly_name: Optional[str] = None, printer_type: Optional[str] = "Ultimaker 3", **kwargs) -> None:
friendly_name: Optional[str] = None, printer_type: str = "Ultimaker 3", **kwargs) -> None:
self.cluster_id = cluster_id
self.host_guid = host_guid
self.host_name = host_name