Skip to content

Commit

Permalink
Fix Dict type so it works with oder python
Browse files Browse the repository at this point in the history
  • Loading branch information
jlashner committed Aug 14, 2024
1 parent cd7fa36 commit 9debd80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions socs/agents/lakeshore240/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 9debd80

Please sign in to comment.