From: Plom Heller Date: Sun, 4 Oct 2026 17:31:55 +0000 (+0200) Subject: Underscore class name not meant to be shared. X-Git-Url: https://plomlompom.com/repos/day?a=commitdiff_plain;h=94a484174de293d86f0c803c6ed51117cfa8dfdf;p=bricksplom Underscore class name not meant to be shared. --- diff --git a/src/bricksplom/misc.py b/src/bricksplom/misc.py index ff8c5b3..f0bf6de 100644 --- a/src/bricksplom/misc.py +++ b/src/bricksplom/misc.py @@ -607,7 +607,7 @@ class _Brick(_Textfiled, _WithDb, _Lookupable): f'{design.description} ({color}){comment}') -class BrickSet(_Textfiled, _WithDb, _Lookupable): +class _BrickSet(_Textfiled, _WithDb, _Lookupable): 'Named collection of bricks in order of pages of columns of counts.' def __init__( @@ -774,7 +774,7 @@ class _Box(_WithDb, _Lookupable): def __init__( self, id_: str, - bricks_set: BrickSet, + bricks_set: _BrickSet, **kwargs ) -> None: super().__init__(**kwargs) @@ -801,7 +801,7 @@ class _Box(_WithDb, _Lookupable): def brick_listings_flat( self ) -> tuple[_BrickListing, ...]: - 'Shortcut to BrickSet method of same name.' + 'Shortcut to _BrickSet method of same name.' return self._set.brick_listings_flat() def show( @@ -826,12 +826,12 @@ class BricksDb: 'bricks': _Brick, 'colors': _BrickColor, 'designs': _BrickDesign, - 'sets': BrickSet + 'sets': _BrickSet } bricks: dict[str, _Brick] colors: dict[str, _BrickColor] designs: dict[str, _BrickDesign] - sets: dict[str, BrickSet] + sets: dict[str, _BrickSet] def __init__( self, @@ -997,6 +997,6 @@ class BricksDb: def set_colors( self - ) -> Optional[BrickSet]: + ) -> Optional[_BrickSet]: 'Set with color examples, if found under ._name_set_colors.' return self.sets.get(self._name_set_colors)