You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: harden edac_svg_markup_to_data_uri() against non-string input, trim docblock
Address review feedback on PR #1832 (CodeRabbit + Gemini Code Assist):
add a return type declaration, tighten the docblock down to the
non-obvious "why", and cover a combined-vector payload plus non-string
inputs in tests.
The parameter itself stays untyped: a strict `string` type hint would
turn a wrong-type caller into a fatal TypeError. Instead the function
checks is_string() itself and always returns a valid (if payload-less)
data: URI, even on bad input.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments