mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Fix typing syntax
This commit is contained in:
parent
e4d8fb36ab
commit
6506596ece
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ class BaseModel:
|
||||||
|
|
||||||
## Class representing a material that was fetched from the cluster API.
|
## Class representing a material that was fetched from the cluster API.
|
||||||
class ClusterMaterial(BaseModel):
|
class ClusterMaterial(BaseModel):
|
||||||
def __init__(self, guid = str, version = str, **kwargs) -> None:
|
def __init__(self, guid: str, version: int, **kwargs) -> None:
|
||||||
self.guid = guid # type: str
|
self.guid = guid # type: str
|
||||||
self.version = version # type: int
|
self.version = version # type: int
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
|
@ -28,7 +28,7 @@ class ClusterMaterial(BaseModel):
|
||||||
|
|
||||||
## Class representing a local material that was fetched from the container registry.
|
## Class representing a local material that was fetched from the container registry.
|
||||||
class LocalMaterial(BaseModel):
|
class LocalMaterial(BaseModel):
|
||||||
def __init__(self, GUID = str, id = str, version = str, **kwargs) -> None:
|
def __init__(self, GUID: str, id: str, version: int, **kwargs) -> None:
|
||||||
self.GUID = GUID # type: str
|
self.GUID = GUID # type: str
|
||||||
self.id = id # type: str
|
self.id = id # type: str
|
||||||
self.version = version # type: int
|
self.version = version # type: int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue