chore(guardrails): drop a comment that repeated its own docstring

This commit is contained in:
Yucheng Zhu 2026-08-12 18:46:18 -07:00
parent 249733e71c
commit 144d32979e

View file

@ -105,8 +105,6 @@ def anthropic_sse_error_frames(message: str | Mapping[str, object]) -> tuple[byt
travel as a frame. A structured detail is JSON-serialized into the string so it stays machine
readable without violating the string-typed contract.
"""
# AnthropicErrorDetail.message is a str, so a structured detail is serialized into the string
# rather than nested as an object
text: Final = message if isinstance(message, str) else json.dumps(message, default=str)
body: Final = json.dumps(text)
return (