Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix contributor PR linting failing (#14710)

Ishaan Jaff80bd8e007fd7
diff --git a/litellm/litellm_core_utils/object_pooling.py b/litellm/litellm_core_utils/object_pooling.py
index 22b371501c1..846e6536f80 100644
--- a/litellm/litellm_core_utils/object_pooling.py
+++ b/litellm/litellm_core_utils/object_pooling.py
@@ -14,8 +14,9 @@ Memory Management Strategy:
- Unlimited pools when maxsize is not specified (eviction controls actual usage)
"""
-from typing import Type, TypeVar, Optional, Callable
-from pond import Pond, PooledObjectFactory, PooledObject
+from typing import Any, Callable, Optional, Type, TypeVar
+
+from pond import Pond, PooledObject, PooledObjectFactory
T = TypeVar('T')
@@ -50,7 +51,7 @@ class GenericPooledObjectFactory(PooledObjectFactory):
pooled_object.keeped_object.__dict__.clear()
del pooled_object
- def reset(self, pooled_object: PooledObject) -> PooledObject:
+ def reset(self, pooled_object: PooledObject, **kwargs: Any) -> PooledObject:
"""Reset the pooled object to a clean state."""
obj = pooled_object.keeped_object
# Reset the object by calling its reset method if it exists
diff --git a/tests/llm_translation/test_groq.py b/tests/llm_translation/test_groq.py
index b9230d8eebb..fc84580404c 100644
--- a/tests/llm_translation/test_groq.py
+++ b/tests/llm_translation/test_groq.py
@@ -6,6 +6,7 @@ import pytest
# sys.path.insert(
# 0, os.path.abspath("../..")
+# ) # noqa
# ) # Adds the parent directory to the system path
from base_llm_unit_tests import BaseLLMChatTest