From 26c22be73e94b48e019b16006c5809da23ef8a9f Mon Sep 17 00:00:00 2001 From: Mehul Anshumali Date: Sat, 28 Jun 2025 12:14:34 +0530 Subject: [PATCH] Fix #866: Add constructor for tag:yaml.org,2002:value --- lib/yaml/constructor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/yaml/constructor.py b/lib/yaml/constructor.py index 619acd307..897dc4311 100644 --- a/lib/yaml/constructor.py +++ b/lib/yaml/constructor.py @@ -476,6 +476,10 @@ def construct_undefined(self, node): 'tag:yaml.org,2002:map', SafeConstructor.construct_yaml_map) +SafeConstructor.add_constructor( + 'tag:yaml.org,2002:value', + SafeConstructor.construct_yaml_str) + SafeConstructor.add_constructor(None, SafeConstructor.construct_undefined)