How to compose a collection from elements defined in other files #838
-
|
Below broadStInventory.pkl Inventory.pkl civic.pkl |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
This is very close as-is! The only difference is that civic.pkl must civic.pkl Separately, the |
Beta Was this translation helpful? Give feedback.
This is very close as-is! The only difference is that civic.pkl must
amendCar.pkl instead of importing it. Amending a module is conceptually identical to instantiating it vianewcivic.pkl
Separately, the
Inventoryclass in your Inventory.pkl module seems odd. The class appears unused and duplicate the module's existing properties. You can likely remove the class entirely. In Pkl, modules are classes.