mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-08-02 12:58:30 +00:00
13 lines
437 B
Python
13 lines
437 B
Python
from typing import List, Protocol
|
|
|
|
from domain.condition.property_condition_survey import PropertyConditionSurvey
|
|
|
|
|
|
class ConditionWriter(Protocol):
|
|
"""Persists condition surveys. ``ConditionPostgres`` is the production
|
|
implementation; a load orchestrator depends on this port so it can be
|
|
exercised without a database."""
|
|
|
|
def bulk_insert_surveys(
|
|
self, surveys: List[PropertyConditionSurvey]
|
|
) -> None: ...
|