From 7abede0db0806c57838a9fca7532b0d3c249e6b7 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Fri, 19 Dec 2025 11:03:45 +0000 Subject: [PATCH] Fix type errors in remaining Things --- src/openflexure_microscope_server/things/autofocus.py | 2 +- src/openflexure_microscope_server/things/system.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/autofocus.py b/src/openflexure_microscope_server/things/autofocus.py index f46f7ee9..b0b56584 100644 --- a/src/openflexure_microscope_server/things/autofocus.py +++ b/src/openflexure_microscope_server/things/autofocus.py @@ -264,7 +264,7 @@ class JPEGSharpnessMonitor: """Clean up after context manager is closed.""" self.running = False - def focus_rel(self, dz: int, block_cancellation: int = False) -> tuple[int, int]: + def focus_rel(self, dz: int, block_cancellation: bool = False) -> tuple[int, int]: """Move the stage by dz, monitoring the position over time. This performs exactly one move. Multiple calls of this method diff --git a/src/openflexure_microscope_server/things/system.py b/src/openflexure_microscope_server/things/system.py index df89ca73..ff9da423 100644 --- a/src/openflexure_microscope_server/things/system.py +++ b/src/openflexure_microscope_server/things/system.py @@ -52,7 +52,7 @@ class OpenFlexureSystem(lt.Thing): @microscope_id.setter def _set_microscope_id(self, uuid: UUID) -> None: - self._microscope_id = uuid + self._microscope_id = str(uuid) @lt.property def hostname(self) -> str: