Skip to content
Snippets Groups Projects
Commit a95f106b authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Show reprs for mismatched types instead of classes

parent 463aa549
No related branches found
No related tags found
1 merge request!1076Script to validate YAML config against notebooks
...@@ -156,7 +156,7 @@ def check_yaml_file(path: Path, config_dir: Path, nb_params, detectors): ...@@ -156,7 +156,7 @@ def check_yaml_file(path: Path, config_dir: Path, nb_params, detectors):
elif not like_type(v, param.type): elif not like_type(v, param.type):
config_problem( config_problem(
"Type differs from default in notebook", "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) rel_path, (action, instrument, kid, k)
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment