Commit a6f265a
committed
refactor: split ObjectStateRegistry into its own module
Extract ObjectStateRegistry (1434 lines) from object_state.py (3591 lines)
into object_state_registry.py. object_state.py now contains only FieldProxy
and ObjectState (2167 lines).
Circular import avoided: registry uses TYPE_CHECKING import for ObjectState
(string annotations only), object_state.py imports ObjectStateRegistry at
runtime. __init__.py re-exports from both modules.1 parent c98be98 commit a6f265a
File tree
3 files changed
+1440
-1427
lines changed- src/objectstate
3 files changed
+1440
-1427
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
225 | | - | |
| 226 | + | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
0 commit comments