diff --git a/domain/framework/entity.py b/domain/framework/entity.py index fa2cb43..99f0ad9 100644 --- a/domain/framework/entity.py +++ b/domain/framework/entity.py @@ -14,5 +14,8 @@ class Entity(ABC): def get_changes(self) -> tuple[DomainEvent, ...]: return self._changes + def _ensure_valid_state(self): + pass + def clear_changes(self) -> Self: return replace(self, _changes=())