From 9debd808be843f5b8d0444330c48d855b4e9c3ab Mon Sep 17 00:00:00 2001 From: Jack Lashner Date: Tue, 13 Aug 2024 21:12:18 -0400 Subject: [PATCH] Fix Dict type so it works with oder python --- socs/agents/lakeshore240/agent.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/socs/agents/lakeshore240/agent.py b/socs/agents/lakeshore240/agent.py index 60e1e10ef..3dab95acb 100644 --- a/socs/agents/lakeshore240/agent.py +++ b/socs/agents/lakeshore240/agent.py @@ -23,7 +23,7 @@ log = txaio.make_logger() # pylint: disable=E1101 -ActionReturnType = Optional[dict[str, Any]] +ActionReturnType = Optional[Dict[str, Any]] OcsOpReturnType = Tuple[bool, str] OcsInlineCallbackReturnType = Generator[Any, Any, OcsOpReturnType] @@ -117,7 +117,7 @@ def __init__( def set_values( self, session: ocs_agent.OpSession, - params: Optional[dict[str, Any]] = None, # pylint: disable=unused-argument + params: Optional[Dict[str, Any]] = None, # pylint: disable=unused-argument ) -> OcsInlineCallbackReturnType: """set_values(channel, sensor=None, auto_range=None, range=None,\ current_reversal=None, units=None, enabled=None, name=None) @@ -162,7 +162,7 @@ def set_values( def upload_cal_curve( self, session: ocs_agent.OpSession, - params: Optional[dict[str, Any]] = None, # pylint: disable=unused-argument + params: Optional[Dict[str, Any]] = None, # pylint: disable=unused-argument ) -> OcsInlineCallbackReturnType: """upload_cal_curve(channel, filename) @@ -232,7 +232,7 @@ def _process_actions(self, module: Module) -> None: def main( self, session: ocs_agent.OpSession, - params: Optional[dict[str, Any]] = None, # pylint: disable=unused-argument + params: Optional[Dict[str, Any]] = None, # pylint: disable=unused-argument ) -> OcsOpReturnType: """ **Process** - Main process for the Lakeshore240 agent.