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:
Sangsiva 2026-09-21 15:42:35 +08:00
parent 965cbb3f87
commit 2eab418cf9

View file

@ -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.