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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-08-16 12:20:27 +02:00
commit f737c15a0d
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -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(