Fix type errors in remaining Things

This commit is contained in:
Julian Stirling 2025-12-19 11:03:45 +00:00
parent 99eee2e912
commit 7abede0db0
2 changed files with 2 additions and 2 deletions

View file

@ -264,7 +264,7 @@ class JPEGSharpnessMonitor:
"""Clean up after context manager is closed.""" """Clean up after context manager is closed."""
self.running = False 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. """Move the stage by dz, monitoring the position over time.
This performs exactly one move. Multiple calls of this method This performs exactly one move. Multiple calls of this method

View file

@ -52,7 +52,7 @@ class OpenFlexureSystem(lt.Thing):
@microscope_id.setter @microscope_id.setter
def _set_microscope_id(self, uuid: UUID) -> None: def _set_microscope_id(self, uuid: UUID) -> None:
self._microscope_id = uuid self._microscope_id = str(uuid)
@lt.property @lt.property
def hostname(self) -> str: def hostname(self) -> str: