home · contact · privacy
Underscore class name not meant to be shared.
authorPlom Heller <plom@plomlompom.com>
Sun, 4 Oct 2026 17:31:55 +0000 (19:31 +0200)
committerPlom Heller <plom@plomlompom.com>
Sun, 4 Oct 2026 17:31:55 +0000 (19:31 +0200)
src/bricksplom/misc.py

index ff8c5b336f8c45b33b267f51313ea65ca3455deb..f0bf6de104319b79b8adacbf3bdc61e21e8b3247 100644 (file)
@@ -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)