mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
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:
parent
1eef2138ab
commit
515eb0298f
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue