Skip to content

Commit d5e0fc8

Browse files
committed
Temporary fix for issue in JSON export with NIL in operators
1 parent 92d25bc commit d5e0fc8

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)