mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Restructure codebase - part 1
This commit is contained in:
parent
87517a77c2
commit
3c1b377308
46 changed files with 898 additions and 1725 deletions
9
plugins/UM3NetworkPrinting/src/Models/BaseModel.py
Normal file
9
plugins/UM3NetworkPrinting/src/Models/BaseModel.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
## Base model that maps kwargs to instance attributes.
|
||||
class BaseModel:
|
||||
def __init__(self, **kwargs) -> None:
|
||||
self.__dict__.update(kwargs)
|
||||
self.validate()
|
||||
|
||||
# Validates the model, raising an exception if the model is invalid.
|
||||
def validate(self) -> None:
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue