From 495e6c0a2b4e62cb9a2724ab076dd5e0005fefe9 Mon Sep 17 00:00:00 2001 From: Aniket Maurya Date: Thu, 16 Oct 2025 01:36:32 +0100 Subject: [PATCH] Add type hint to function_to_dict and fix typo Updated type hint for function_to_dict and fixed typo in docstring. --- litellm/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/utils.py b/litellm/utils.py index 80ba37307df..52c6c067ef4 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -5121,9 +5121,9 @@ def json_schema_type(python_type_name: str): return python_to_json_schema_types.get(python_type_name, "string") -def function_to_dict(input_function): # noqa: C901 +def function_to_dict(input_function) -> dict: # noqa: C901 """Using type hints and numpy-styled docstring, - produce a dictionnary usable for OpenAI function calling + produce a dictionary usable for OpenAI function calling Parameters ----------