From a95f106b5ceed0d379c52e08bfc6fed1ae3a58fe Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas.kluyver@xfel.eu>
Date: Fri, 11 Oct 2024 17:24:36 +0200
Subject: [PATCH] Show reprs for mismatched types instead of classes

---
 src/xfel_calibrate/validate_nbs_config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfel_calibrate/validate_nbs_config.py b/src/xfel_calibrate/validate_nbs_config.py
index 67881e2a3..ff949658f 100644
--- a/src/xfel_calibrate/validate_nbs_config.py
+++ b/src/xfel_calibrate/validate_nbs_config.py
@@ -156,7 +156,7 @@ def check_yaml_file(path: Path, config_dir: Path, nb_params, detectors):
                     elif not like_type(v, param.type):
                         config_problem(
                             "Type differs from default in notebook",
-                            f"notebook: {param.type}, config: {type(v)}",
+                            f"notebook: {param.value!r}, config: {v!r}",
                             rel_path, (action, instrument, kid, k)
                         )
 
-- 
GitLab