Fix functions definition
This commit is contained in:
parent
7047a28845
commit
cffe844d79
@ -103,12 +103,7 @@ class BrickSetList(BrickRecordList[BrickSet]):
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
# Sets missing a part
|
# Sets missing a part
|
||||||
def missing_part(
|
def missing_part(self, part: str, color: int, /) -> Self:
|
||||||
self,
|
|
||||||
part: str,
|
|
||||||
color: int,
|
|
||||||
/
|
|
||||||
) -> Self:
|
|
||||||
# Save the parameters to the fields
|
# Save the parameters to the fields
|
||||||
self.fields.part = part
|
self.fields.part = part
|
||||||
self.fields.color = color
|
self.fields.color = color
|
||||||
@ -141,12 +136,7 @@ class BrickSetList(BrickRecordList[BrickSet]):
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
# Sets using a part
|
# Sets using a part
|
||||||
def using_part(
|
def using_part(self, part: str, color: int, /) -> Self:
|
||||||
self,
|
|
||||||
part: str,
|
|
||||||
color: int,
|
|
||||||
/
|
|
||||||
) -> Self:
|
|
||||||
# Save the parameters to the fields
|
# Save the parameters to the fields
|
||||||
self.fields.part = part
|
self.fields.part = part
|
||||||
self.fields.color = color
|
self.fields.color = color
|
||||||
|
Loading…
Reference in New Issue
Block a user