fix(utils): move cast-ok suppression to cast() line

LIT006 is triggered on the cast( line, but the # cast-ok: comment was
on the closing paren line, which caused LIT013 (unused suppression).
Moving the comment to the cast( line resolves both violations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian-Sidak 2026-10-25 20:04:03 -07:00
parent 1eef2138ab
commit 515eb0298f

View file

@ -8449,9 +8449,9 @@ def validate_and_fix_openai_messages(
)
cleaned_message = cleanup_none_field_in_message(message=convert_msg_to_dict)
new_messages.append(
cast(
cast( # cast-ok: cleanup_none_field_in_message return satisfies AllMessageValues
AllMessageValues, cleaned_message
) # cast-ok: cleanup_none_field_in_message return satisfies AllMessageValues
)
)
return validate_chat_completion_user_messages(messages=new_messages)