Add persistent source generations
This commit is contained in:
parent
3bee200234
commit
ad4f52b239
7 changed files with 770 additions and 231 deletions
|
|
@ -204,6 +204,13 @@ class IncrementalStateProject(ProjectService, Protocol):
|
|||
def incremental_state(self) -> ProjectState | None: ...
|
||||
|
||||
|
||||
@runtime_checkable
|
||||
class GenerationRecordingProject(IncrementalStateProject, Protocol):
|
||||
"""Optional project boundary that can persist a verified cheap source generation."""
|
||||
|
||||
def record_generation(self, snapshot: ProjectSnapshot) -> None: ...
|
||||
|
||||
|
||||
@runtime_checkable
|
||||
class RuntimeValidatedProject(ProjectService, Protocol):
|
||||
"""Optional project boundary that proves its loaded implementation is current."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue