Skip to content

Commit b568bf8

Browse files
committed
packaging: Fix base model_post_init to not wipe self._ordered_pins ...
1 parent 126bd42 commit b568bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chipflow_lib/packaging/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def model_post_init(self, __context):
4848
"""Initialize internal tracking structures"""
4949
self._interfaces: Dict[str, dict] = {}
5050
self._components: Dict[str, wiring.Component] = {}
51-
self._ordered_pins = None # Subclasses should set this
51+
assert self._ordered_pins is not None, "Subclass must set self._ordered_pins in model_post_init"
5252
return super().model_post_init(__context)
5353

5454
def register_component(self, name: str, component: wiring.Component) -> None:

0 commit comments

Comments
 (0)