Skip to content

Commit 80bd8e0

Browse files
authored
fix contributor PR linting failing (#14710)
* validate fix * fix linting error
1 parent 9a6b165 commit 80bd8e0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

litellm/litellm_core_utils/object_pooling.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
- Unlimited pools when maxsize is not specified (eviction controls actual usage)
1515
"""
1616

17-
from typing import Type, TypeVar, Optional, Callable
18-
from pond import Pond, PooledObjectFactory, PooledObject
17+
from typing import Any, Callable, Optional, Type, TypeVar
18+
19+
from pond import Pond, PooledObject, PooledObjectFactory
1920

2021
T = TypeVar('T')
2122

@@ -50,7 +51,7 @@ def destroy(self, pooled_object: PooledObject):
5051
pooled_object.keeped_object.__dict__.clear()
5152
del pooled_object
5253

53-
def reset(self, pooled_object: PooledObject) -> PooledObject:
54+
def reset(self, pooled_object: PooledObject, **kwargs: Any) -> PooledObject:
5455
"""Reset the pooled object to a clean state."""
5556
obj = pooled_object.keeped_object
5657
# Reset the object by calling its reset method if it exists

tests/llm_translation/test_groq.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# sys.path.insert(
88
# 0, os.path.abspath("../..")
9+
# ) # noqa
910
# ) # Adds the parent directory to the system path
1011

1112
from base_llm_unit_tests import BaseLLMChatTest

0 commit comments

Comments
 (0)