feat: add no-op when method to Entity base class for event handling

This commit is contained in:
2026-07-29 10:42:06 -04:00
parent 494406d504
commit 511a66ab66

View File

@@ -17,5 +17,8 @@ class Entity(ABC):
def _ensure_valid_state(self):
pass
def when(self, event: DomainEvent) -> Self:
return self
def clear_changes(self) -> Self:
return replace(self, _changes=())