Fix typing in __init__ methods to appease MYPY

This commit is contained in:
fieldOfView 2020-01-14 21:56:06 +01:00
parent 9f023eb28e
commit 6abf916ced
7 changed files with 7 additions and 7 deletions

View file

@ -14,7 +14,7 @@ class ClusterPrinterMaterialStationSlot(ClusterPrintCoreConfiguration):
# \param material_remaining: How much material is remaining on the spool (between 0 and 1, or -1 for missing data).
# \param material_empty: Whether the material spool is too empty to be used.
def __init__(self, slot_index: int, compatible: bool, material_remaining: float,
material_empty: Optional[bool] = False, **kwargs):
material_empty: Optional[bool] = False, **kwargs) -> None:
self.slot_index = slot_index
self.compatible = compatible
self.material_remaining = material_remaining