Rename load to from_set for clarity

This commit is contained in:
Gregoo 2025-01-27 17:07:30 +01:00
parent e90405d2de
commit 2f6177865b
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class BrickMinifigureList(BrickRecordList[BrickMinifigure]):
return self
# Load minifigures from a brickset
def load(self, brickset: 'BrickSet', /) -> Self:
def from_set(self, brickset: 'BrickSet', /) -> Self:
# Save the brickset
self.brickset = brickset

View File

@ -101,7 +101,7 @@ class BrickSet(RebrickableSet):
# Minifigures
def minifigures(self, /) -> BrickMinifigureList:
return BrickMinifigureList().load(self)
return BrickMinifigureList().from_set(self)
# Parts
def parts(self, /) -> BrickPartList: