[object Object]

← back to Exo

fix: Ensure MasterState inherits from SharedState

df824e2e87662759bf24bd0a947806ec27d9610c · 2025-07-01 12:18:48 +0100 · Arbion Halili

Files touched

Diff

commit df824e2e87662759bf24bd0a947806ec27d9610c
Author: Arbion Halili <99731180+ToxicPine@users.noreply.github.com>
Date:   Tue Jul 1 12:18:48 2025 +0100

    fix: Ensure MasterState inherits from SharedState
---
 shared/types/states/master.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shared/types/states/master.py b/shared/types/states/master.py
index d9dff550..aef63941 100644
--- a/shared/types/states/master.py
+++ b/shared/types/states/master.py
@@ -5,12 +5,13 @@ from pydantic import BaseModel
 from shared.types.common import NodeId
 from shared.types.networking.topology import NetworkState
 from shared.types.profiling.common import NodeProfile
+from shared.types.states.shared import SharedState
 
 
 class ExternalCommand(BaseModel): ...
 
 
-class MasterState(BaseModel):
+class MasterState(SharedState):
     network_state: NetworkState
     node_profiles: dict[NodeId, NodeProfile]
     job_inbox: Queue[ExternalCommand]

← d5033e65 refactor: Replace Literal with Enum in sources.py  ·  back to Exo  ·  feat: Add ResourceGraph, runner types, etc. 73ac8969 →