mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(anthropic): annotate return type of identity-strip staticmethod
Restores the ANN205 strict-rule budget: the new helper is a @staticmethod and must carry a return annotation like its billing-header sibling gate.
This commit is contained in:
parent
965cbb3f87
commit
2eab418cf9
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ class AnthropicMessagesConfig(BaseAnthropicMessagesConfig):
|
|||
return False
|
||||
|
||||
@staticmethod
|
||||
def _strip_claude_code_identity_from_system(system_param):
|
||||
def _strip_claude_code_identity_from_system(system_param) -> str | list | None:
|
||||
"""
|
||||
Strip Claude Code's self-identification sentence from system parameter.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue