mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-28 23:04:34 +08:00
Fix typing issue
This commit is contained in:
parent
5ee6cd7e8f
commit
189d873fc1
@ -8,13 +8,13 @@ from .ClusterPrinterMaterialStationSlot import ClusterPrinterMaterialStationSlot
|
|||||||
|
|
||||||
## Class representing the data of a Material Station in the cluster.
|
## Class representing the data of a Material Station in the cluster.
|
||||||
class ClusterPrinterMaterialStation(BaseModel):
|
class ClusterPrinterMaterialStation(BaseModel):
|
||||||
|
|
||||||
## Creates a new Material Station status.
|
## Creates a new Material Station status.
|
||||||
# \param status: The status of the material station.
|
# \param status: The status of the material station.
|
||||||
# \param: supported: Whether the material station is supported on this machine or not.
|
# \param: supported: Whether the material station is supported on this machine or not.
|
||||||
# \param material_slots: The active slots configurations of this material station.
|
# \param material_slots: The active slots configurations of this material station.
|
||||||
def __init__(self, status: str, supported: bool = False,
|
def __init__(self, status: str, supported: bool = False,
|
||||||
material_slots: Union[None, Dict[str, Any], ClusterPrinterMaterialStationSlot] = None,
|
material_slots: List[Union[None, Dict[str, Any], ClusterPrinterMaterialStationSlot]] = None,
|
||||||
**kwargs) -> None:
|
**kwargs) -> None:
|
||||||
self.status = status
|
self.status = status
|
||||||
self.supported = supported
|
self.supported = supported
|
||||||
|
Loading…
x
Reference in New Issue
Block a user