When formatting code with parentheses around the condition, is not is incorrectly converted to is, dropping the not keyword.
Input:
func _test(test: Variant) -> void:
if (test is not Array):
return
Output:
func _test(test: Variant) -> void:
if (test is Array):
return
Expected:
is not should remain is not regardless of parentheses.
Note:
This only happens when the condition is wrapped in parentheses. Without parentheses, is not formats correctly.
When formatting code with parentheses around the condition, is not is incorrectly converted to is, dropping the not keyword.
Input:
Output:
Expected:
is notshould remainis notregardless of parentheses.Note:
This only happens when the condition is wrapped in parentheses. Without parentheses,
is notformats correctly.