[object Object]

← back to Exo

refactor: Put type defs on one line

aae3e4a82d94f6f508b10cb1bba782355416d1a6 · 2025-06-30 09:46:44 +0100 · Alex Cheema

Files touched

Diff

commit aae3e4a82d94f6f508b10cb1bba782355416d1a6
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Mon Jun 30 09:46:44 2025 +0100

    refactor: Put type defs on one line
---
 shared/types/event_sourcing.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/shared/types/event_sourcing.py b/shared/types/event_sourcing.py
index b7b2e7ed..ed239e43 100644
--- a/shared/types/event_sourcing.py
+++ b/shared/types/event_sourcing.py
@@ -76,9 +76,7 @@ EventTypeParser: TypeAdapter[AnnotatedEventType] = TypeAdapter(AnnotatedEventTyp
 
 Applicator = Callable[[State[EventTypeT], Event[TEventType]], State[EventTypeT]]
 Apply = Callable[[State[EventTypeT], Event[EventTypeT]], State[EventTypeT]]
-SagaApplicator = Callable[
-    [State[EventTypeT], Event[TEventType]], Sequence[Event[EventTypeT]]
-]
+SagaApplicator = Callable[[State[EventTypeT], Event[TEventType]], Sequence[Event[EventTypeT]]]
 Saga = Callable[[State[EventTypeT], Event[EventTypeT]], Sequence[Event[EventTypeT]]]
 
 StateAndEvent = Tuple[State[EventTypeT], Event[EventTypeT]]
@@ -132,6 +130,4 @@ class Command(BaseModel, Generic[TEventType, TCommandType]):
     command_id: CommandId
 
 
-Decide = Callable[
-    [State[EventTypeT], Command[TEventType, TCommandType]], Sequence[Event[EventTypeT]]
-]
+Decide = Callable[[State[EventTypeT], Command[TEventType, TCommandType]], Sequence[Event[EventTypeT]]]

← 596b069f chore: Fail pipeline if working tree changes instead of comm  ·  back to Exo  ·  chore: Run formatter 133ab70d →