Skip to content

Commit 5b49003

Browse files
authored
Merge pull request #37 from BastiaanOlij/workaround_variant_nodepath
Temporary fix for issue in JSON export with NIL in operators
2 parents 69a3bbf + 5fb0d64 commit 5b49003

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

binding_generator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ def generate_builtin_bindings(api, output_dir, build_config):
164164
if "operators" in builtin_api:
165165
for operator in builtin_api["operators"]:
166166
if "right_type" in operator:
167-
if is_included(operator["right_type"], class_name):
167+
# FIXME Temporary workaround for incorrect JSON
168+
if operator["right_type"] == "Nil":
169+
used_classes.add("Variant")
170+
elif is_included(operator["right_type"], class_name):
168171
used_classes.add(operator["right_type"])
169172

170173
for type_name in fully_used_classes:

0 commit comments

Comments
 (0)