diff --git a/litellm/litellm_core_utils/prompt_templates/factory.py b/litellm/litellm_core_utils/prompt_templates/factory.py index 559814cbea0..33e2bf03578 100644 --- a/litellm/litellm_core_utils/prompt_templates/factory.py +++ b/litellm/litellm_core_utils/prompt_templates/factory.py @@ -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