From 24be993478355cbd03efdd3d8da5901daff6bb1b Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Wed, 22 Oct 2025 11:26:36 +0000 Subject: [PATCH] Apply suggestions from code review of branch camera-metadata --- src/openflexure_microscope_server/things/camera/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/camera/__init__.py b/src/openflexure_microscope_server/things/camera/__init__.py index 1a20f65e..ac1958c2 100644 --- a/src/openflexure_microscope_server/things/camera/__init__.py +++ b/src/openflexure_microscope_server/things/camera/__init__.py @@ -465,7 +465,7 @@ class BaseCamera(lt.Thing): self, metadata_getter: lt.deps.GetThingStates, logger: lt.deps.InvocationLogger, - ) -> Image: + ) -> Tuple[Image, Mapping[str, Any]]: """Capture an image in memory and return it with metadata. This robust capturing method attempts to capture the image five times @@ -490,7 +490,7 @@ class BaseCamera(lt.Thing): def _capture_metadata( self, - metadata: dict, + metadata: Mapping[str, Any], ) -> dict: """Return the metadata for a capture, from the thing states, time and known names.""" return {