1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-05-04 22:04:21 +02:00

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
+1
View File
@@ -15,6 +15,7 @@ class ScanInfo(BaseModel):
scan_report_devices: list
monitored_devices: list
status: str
model_config: dict = {"validate_assignment": True}
class AutoUpdates: