From 2f6177865b9b0136f3e522b7354b0deed3bf07d9 Mon Sep 17 00:00:00 2001 From: Gregoo Date: Mon, 27 Jan 2025 17:07:30 +0100 Subject: [PATCH] Rename load to from_set for clarity --- bricktracker/minifigure_list.py | 2 +- bricktracker/set.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bricktracker/minifigure_list.py b/bricktracker/minifigure_list.py index 04ece73..4b5f183 100644 --- a/bricktracker/minifigure_list.py +++ b/bricktracker/minifigure_list.py @@ -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 diff --git a/bricktracker/set.py b/bricktracker/set.py index e521268..17f71b8 100644 --- a/bricktracker/set.py +++ b/bricktracker/set.py @@ -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: