Commit 5073c83
committed
fix(core): restore LocalProjectIndexRuntimeProvider — it is a real decoupling seam
Commit 9015127 collapsed LocalProjectIndexRuntimeProvider to the concrete
LocalProjectIndexRuntimeFactory on the premise it was the sole impl / pure
indirection. That premise was wrong: services/initialization.py declares its own
matching InitialProjectIndexRuntimeFactory Protocol and passes a value of that
type into run_local_project_index_for_project. The structural Protocol was the
boundary that let the services layer supply a factory without importing the
concrete class from the index layer, so narrowing the parameter to the concrete
broke the assignment (ty: Expected LocalProjectIndexRuntimeFactory, found
InitialProjectIndexRuntimeFactory).
Restore the Protocol and re-type the parameter. Caught by the full-tree ty check
(the collapse's per-chunk typecheck did not cover services/).
Signed-off-by: phernandez <paul@basicmachines.co>1 parent 642f2d5 commit 5073c83
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
337 | 349 | | |
338 | 350 | | |
339 | 351 | | |
| |||
508 | 520 | | |
509 | 521 | | |
510 | 522 | | |
511 | | - | |
| 523 | + | |
512 | 524 | | |
513 | 525 | | |
514 | 526 | | |
| |||
0 commit comments