Commit 6164282
chore(python): pre-merge simplifier pass
Five small clarity tweaks on the two commits that closed the Python ledger
(fd14f33 persistence + c43e15c conformance gaps). Behavior-identical; 451/451
unit tests still green.
* core_types.py: drop unused FIELD_SUBTYPE_OBJECT import.
* core_types.py: lift the inline "required" validator subtype to a named
VALIDATOR_SUBTYPE_REQUIRED constant — matches the metamodel-strings-as-
constants discipline (Java has SUBTYPE_REQUIRED on RequiredValidator).
* validation_passes.py: route the template R2 check through the already-
imported OBJECT_SUBTYPE_VALUE instead of the literal "value".
* object_manager.py: move the _PG_OID_* constants below the imports
(PEP 8 organization — they were sandwiched mid-import-block).
* query_runner.py: drop unused normalize_value / canonical_value_json
imports + the `_ = ...` lines that silenced the flake — they were
re-export scaffolding for a use-site that never landed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3308262 commit 6164282
4 files changed
Lines changed: 11 additions & 16 deletions
File tree
- server/python
- src/metaobjects
- loader
- runtime
- tests/integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
440 | 439 | | |
441 | 440 | | |
442 | 441 | | |
443 | | - | |
| 442 | + | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
864 | | - | |
| 864 | + | |
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 14 | | |
22 | 15 | | |
23 | 16 | | |
| |||
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
0 commit comments