From 126c451a67838d5fc719479c9ccb456bb9a8bd40 Mon Sep 17 00:00:00 2001 From: Camillo Moschner Date: Thu, 26 Mar 2026 17:20:02 +0000 Subject: [PATCH 1/2] Add missing exports to scales __init__.py The scales module only exported the deprecated MettlerToledoWXS205SDU class (which raises RuntimeError on instantiation) and Scale. The actual usable classes were not importable from the top-level package. Now exports: MettlerToledoWXS205SDUBackend, ScaleBackend, ScaleChatterboxBackend alongside the existing Scale and deprecated alias. Co-Authored-By: Claude Opus 4.6 (1M context) --- pylabrobot/scales/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylabrobot/scales/__init__.py b/pylabrobot/scales/__init__.py index 2958eb3e4d7..af2e62b5161 100644 --- a/pylabrobot/scales/__init__.py +++ b/pylabrobot/scales/__init__.py @@ -1,2 +1,4 @@ -from pylabrobot.scales.mettler_toledo_backend import MettlerToledoWXS205SDU +from pylabrobot.scales.chatterbox import ScaleChatterboxBackend +from pylabrobot.scales.mettler_toledo_backend import MettlerToledoWXS205SDU, MettlerToledoWXS205SDUBackend from pylabrobot.scales.scale import Scale +from pylabrobot.scales.scale_backend import ScaleBackend From 16e8fc1edc6d06873b234bf2003092ac7c05a0f6 Mon Sep 17 00:00:00 2001 From: Camillo Moschner Date: Thu, 26 Mar 2026 17:22:46 +0000 Subject: [PATCH 2/2] Format scales __init__.py with ruff Co-Authored-By: Claude Opus 4.6 (1M context) --- pylabrobot/scales/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pylabrobot/scales/__init__.py b/pylabrobot/scales/__init__.py index af2e62b5161..5e798de1388 100644 --- a/pylabrobot/scales/__init__.py +++ b/pylabrobot/scales/__init__.py @@ -1,4 +1,7 @@ from pylabrobot.scales.chatterbox import ScaleChatterboxBackend -from pylabrobot.scales.mettler_toledo_backend import MettlerToledoWXS205SDU, MettlerToledoWXS205SDUBackend +from pylabrobot.scales.mettler_toledo_backend import ( + MettlerToledoWXS205SDU, + MettlerToledoWXS205SDUBackend, +) from pylabrobot.scales.scale import Scale from pylabrobot.scales.scale_backend import ScaleBackend