Fix typing issue

This commit is contained in:
ChrisTerBeke 2019-08-28 22:45:18 +02:00
parent 5ee6cd7e8f
commit 189d873fc1

View File

@ -14,7 +14,7 @@ class ClusterPrinterMaterialStation(BaseModel):
# \param: supported: Whether the material station is supported on this machine or not.
# \param material_slots: The active slots configurations of this material station.
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:
self.status = status
self.supported = supported