mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
chore(vertex_ai): annotate Final on base64 padding in signature check
The type discipline gate now counts LIT010 against the merge-base ceiling and the rebase carried one un-annotated assignment over.
This commit is contained in:
parent
7be5d7899b
commit
882daa802a
1 changed files with 1 additions and 1 deletions
|
|
@ -1258,7 +1258,7 @@ def _is_valid_thought_signature(signature: str) -> bool:
|
|||
if not signature:
|
||||
return False
|
||||
try:
|
||||
padding = "=" * (-len(signature) % 4)
|
||||
padding: Final = "=" * (-len(signature) % 4)
|
||||
base64.b64decode(signature + padding, validate=True)
|
||||
except (binascii.Error, ValueError):
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue