From f67f9cf615f9fd9075b23e6723e7c1145faa8dd0 Mon Sep 17 00:00:00 2001 From: birkholz-cubert Date: Mon, 18 Aug 2025 08:38:30 +0200 Subject: [PATCH] fix viewer typing annotation --- cuvis/Viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuvis/Viewer.py b/cuvis/Viewer.py index 8450b22..c92e122 100644 --- a/cuvis/Viewer.py +++ b/cuvis/Viewer.py @@ -51,7 +51,7 @@ def _create_view_data(self, new_handle: int) -> Union[dict[str, ImageData], Imag else: return view_array - def apply(self, mesu: Measurement) -> dict[str, ImageData]: + def apply(self, mesu: Measurement) -> Union[dict[str, ImageData], ImageData]: _ptr = cuvis_il.new_p_int() if cuvis_il.status_ok != cuvis_il.cuvis_viewer_apply(self._handle, mesu._handle, _ptr):