Fix typing issues

This commit is contained in:
ChrisTerBeke 2019-08-28 23:27:30 +02:00
parent 7b45100dd0
commit 13e85362b0
2 changed files with 6 additions and 4 deletions

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: List[Union[None, Dict[str, Any], ClusterPrinterMaterialStationSlot]] = None,
material_slots: List[Union[ClusterPrinterMaterialStationSlot, Dict[str, Any]]] = None,
**kwargs) -> None:
self.status = status
self.supported = supported