You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/py/scripts/prebuild.js
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ function fixPassResult() {
128
128
'_obj = cls.model_validate({',
129
129
// The python formatter suddenly decided it didn't like tab characters
130
130
// even though they're fine later on in the string...
131
-
'\n if obj.get("outcome") != "pass":\n raise ValueError("PassResult must have an outcome value of \\"pass\\"!")\n _obj = cls.model_validate({\n\t\t\t"metadata": obj.get("metadata"),\n\t\t\t"value_override": obj.get("valueOverride"),'
131
+
'\n if obj.get("outcome") != "pass":\n raise ValueError("PassResult must have an outcome value of \\"pass\\"!")\n _obj = cls.model_validate({\n\t\t\t"value_override": obj.get("valueOverride"),'
132
132
)
133
133
134
134
if(passResultFile===passResult){
@@ -146,7 +146,7 @@ function fixFailResult() {
146
146
'_obj = cls.model_validate({',
147
147
// The python formatter suddenly decided it didn't like tab characters
148
148
// even though they're fine later on in the string...
149
-
'\n if obj.get("outcome") != "fail":\n raise ValueError("FailResult must have an outcome value of \\"fail\\"!")\n _obj = cls.model_validate({\n\t\t\t"error_message": obj.get("errorMessage"),\n\t\t\t"fix_value": obj.get("fixValue"),\n\t\t\t"error_spans": [ErrorSpan.from_dict(es) for es in obj.get("errorSpans", [])],\n\t\t\t"metadata": obj.get("metadata"),'
149
+
'\n if obj.get("outcome") != "fail":\n raise ValueError("FailResult must have an outcome value of \\"fail\\"!")\n _obj = cls.model_validate({\n\t\t\t"error_message": obj.get("errorMessage"),\n\t\t\t"fix_value": obj.get("fixValue"),\n\t\t\t"error_spans": [ErrorSpan.from_dict(es) for es in obj.get("errorSpans", [])],'
0 commit comments