fix: add model_config to pydantic models to allow runtime checks after creation

This commit is contained in:
2024-06-05 19:37:16 +02:00
parent 828067f486
commit ca5e8d2fbb
6 changed files with 7 additions and 0 deletions
@@ -20,6 +20,7 @@ class AxisConfig(BaseModel):
y_lim: Optional[tuple] = Field(None, description="The limits of the y-axis.")
x_grid: bool = Field(False, description="Show grid on the x-axis.")
y_grid: bool = Field(False, description="Show grid on the y-axis.")
model_config: dict = {"validate_assignment": True}
class SubplotConfig(ConnectionConfig):