From f737c15a0d3aa7126188349cefd45c55533c4d32 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 16 Aug 2026 12:20:27 +0200 Subject: [PATCH] load_yaml: Simplify redundant Any annotation The annotation 'dict[str, Any] | Any' on the cached base value collapses to plain Any, since Any absorbs any union member. Write the simplified form. Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2 Signed-off-by: Jan Lindemann --- src/python/jw/util/load_yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/jw/util/load_yaml.py b/src/python/jw/util/load_yaml.py index a59c30f..4d91d68 100644 --- a/src/python/jw/util/load_yaml.py +++ b/src/python/jw/util/load_yaml.py @@ -235,7 +235,7 @@ def _expand_links_recursive( if link_key in resolving: raise ValueError(f"Cyclic link detected: {link_spec!r}") if link_key in resolved: - base_value: dict[str, Any] | Any = resolved[link_key] + base_value: Any = resolved[link_key] else: resolving.add(link_key) _, _, target_path, target_value = _resolve_link(