Commit cd0e5ee
Remove deprecated source shims (transformer_klass, validator override)
Three back-compat paths in backend/source.py were dead:
- `BaseSource.transformer_klass` — no source overrides it; every connector
passes transformer=. The None fallback now constructs BaseTransformer()
directly.
- `_SubclassValidatorShim` + `BaseParameterSource._validate_record` — the
"override _validate_record instead of passing validator=" mechanism. Nothing
overrides _validate_record, and every concrete parameter source receives a
real validator via BaseAnalyteSource/BaseWaterLevelSource (WQP reaches them
through its mixin MRO). Removed the shim and the stub; the validator default
is now plain None and validation is skipped when absent (only the test fake /
uninstantiated mixin hit that).
No connector relied on either path. Full suite (311) + dg check defs clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 567887f commit cd0e5ee
2 files changed
Lines changed: 6 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 72 | | |
85 | 73 | | |
86 | 74 | | |
| |||
192 | 180 | | |
193 | 181 | | |
194 | 182 | | |
195 | | - | |
196 | | - | |
197 | 183 | | |
198 | | - | |
| 184 | + | |
199 | 185 | | |
200 | 186 | | |
201 | 187 | | |
| |||
228 | 214 | | |
229 | 215 | | |
230 | 216 | | |
231 | | - | |
| 217 | + | |
232 | 218 | | |
233 | 219 | | |
234 | 220 | | |
| |||
356 | 342 | | |
357 | 343 | | |
358 | 344 | | |
359 | | - | |
| 345 | + | |
360 | 346 | | |
361 | 347 | | |
362 | 348 | | |
| |||
483 | 469 | | |
484 | 470 | | |
485 | 471 | | |
486 | | - | |
| 472 | + | |
| 473 | + | |
487 | 474 | | |
488 | 475 | | |
489 | 476 | | |
490 | 477 | | |
491 | 478 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | 479 | | |
497 | 480 | | |
498 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments