(code quality) add ruff check PLR0915 for too-many-statements (#6309)

* ruff add PLR0915

* add noqa for PLR0915

* fix noqa

* add # noqa: PLR0915

* # noqa: PLR0915

* # noqa: PLR0915

* # noqa: PLR0915

* add # noqa: PLR0915

* # noqa: PLR0915

* # noqa: PLR0915

* # noqa: PLR0915

* # noqa: PLR0915
This commit is contained in:
Ishaan Jaff 2024-10-18 15:36:49 +05:30 committed by GitHub
parent 7724d5895c
commit 610974b4fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 137 additions and 119 deletions

View file

@ -333,7 +333,7 @@ class Huggingface(BaseLLM):
headers = default_headers
return headers
def convert_to_model_response_object(
def convert_to_model_response_object( # noqa: PLR0915
self,
completion_response,
model_response: litellm.ModelResponse,
@ -447,7 +447,7 @@ class Huggingface(BaseLLM):
model_response._hidden_params["original_response"] = completion_response
return model_response
def completion(
def completion( # noqa: PLR0915
self,
model: str,
messages: list,