We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 126bd42 commit 8397916Copy full SHA for 8397916
chipflow_lib/packaging/base.py
@@ -48,7 +48,9 @@ def model_post_init(self, __context):
48
"""Initialize internal tracking structures"""
49
self._interfaces: Dict[str, dict] = {}
50
self._components: Dict[str, wiring.Component] = {}
51
- self._ordered_pins = None # Subclasses should set this
+ if not hasattr(self, '_ordered_pins'):
52
+ self._ordered_pins = None # stop pyright complaining..
53
+ assert True, "Subclass must set self._ordered_pins in model_post_init"
54
return super().model_post_init(__context)
55
56
def register_component(self, name: str, component: wiring.Component) -> None:
0 commit comments