Commit 6eb7eed
committed
refactor: simplify settings to pure pydantic without backward compat
- Remove ConfigWrapper class and backward compatibility layer
- Use direct pydantic BaseSettings with typed nested models
- Change context manager from config(...) to config.override(...)
- Add validate_assignment=True for runtime type checking
- Improve store spec validation with clear error messages
- Update all tests to use new API
- Preserve dict-style access via __getitem__/__setitem__ for convenience1 parent a268bd3 commit 6eb7eed
File tree
7 files changed
+572
-549
lines changed- src/datajoint
- tests
7 files changed
+572
-549
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments