From 3cbbedeed3060ad2b43776c18bf8951f86cb230e Mon Sep 17 00:00:00 2001 From: Furkan Date: Wed, 4 Dec 2024 22:41:57 +0300 Subject: [PATCH] fix: change DAQJobMessageStatsRemoteDict to use dict instead of defaultdict --- src/enrgdaq/daq/jobs/remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/enrgdaq/daq/jobs/remote.py b/src/enrgdaq/daq/jobs/remote.py index ab9ec3b..dc22cf5 100644 --- a/src/enrgdaq/daq/jobs/remote.py +++ b/src/enrgdaq/daq/jobs/remote.py @@ -48,7 +48,7 @@ class DAQJobMessageStatsRemote(DAQJobMessage): stats: "DAQJobMessageStatsRemoteDict" -DAQJobMessageStatsRemoteDict = defaultdict[str, SupervisorRemoteStats] +DAQJobMessageStatsRemoteDict = dict[str, SupervisorRemoteStats] class DAQJobRemoteConfig(DAQJobConfig): @@ -290,7 +290,7 @@ def _unpack_message(self, message: bytes) -> DAQJobMessage: return res def _send_remote_stats_message(self): - self._put_message_out(DAQJobMessageStatsRemote(self._remote_stats)) + self._put_message_out(DAQJobMessageStatsRemote(dict(self._remote_stats))) def __del__(self): """