twpasolver.basemodel module#
Custom overload of pydantic BaseModel.
- pydantic model twpasolver.basemodel.BaseModel[source]#
Bases:
BaseModelOverridden pydantic BaseModel.
This class extends the pydantic BaseModel to exclude serializing optional arguments by default and adds functionality for dumping and loading from files.
Show JSON schema
{ "title": "BaseModel", "description": "Overridden pydantic BaseModel.\n\nThis class extends the pydantic BaseModel to exclude serializing optional arguments by default\nand adds functionality for dumping and loading from files.", "type": "object", "properties": {} }
- model_dump(exclude_none: bool = True, mode: str = 'json', **kwargs) dict[source]#
Override the model_dump method to customize serialization.