From b6dd37e5b1b65be76deae2b0d245c14624a40813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=20Vinh=20LUONG=20=28L=C6=AF=C6=A0NG=20Th=E1=BA=BF=20Vi?= =?UTF-8?q?nh=29?= Date: Mon, 25 Nov 2024 14:34:19 -0800 Subject: [PATCH] update Ruff linting configs --- openssa/deprecated/ooda_rag/rag_ooda.py | 4 ++-- openssa/deprecated/utils/deprecated/llama_index_api.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openssa/deprecated/ooda_rag/rag_ooda.py b/openssa/deprecated/ooda_rag/rag_ooda.py index 40c63b739..8c8dea7c6 100644 --- a/openssa/deprecated/ooda_rag/rag_ooda.py +++ b/openssa/deprecated/ooda_rag/rag_ooda.py @@ -1,8 +1,8 @@ from typing import Union, ClassVar from uuid import uuid4 -from llama_index.core.retrievers import BaseRetriever # noqa: TCH002 -from llama_index.core.schema import NodeWithScore # noqa: TCH002 +from llama_index.core.retrievers import BaseRetriever # noqa: TC002 +from llama_index.core.schema import NodeWithScore # noqa: TC002 from openssa.deprecated.ooda_rag.builtin_agents import ( ContextValidator, diff --git a/openssa/deprecated/utils/deprecated/llama_index_api.py b/openssa/deprecated/utils/deprecated/llama_index_api.py index afe562a09..437491c16 100644 --- a/openssa/deprecated/utils/deprecated/llama_index_api.py +++ b/openssa/deprecated/utils/deprecated/llama_index_api.py @@ -5,7 +5,7 @@ from llama_index.core import ServiceContext from llama_index.core.llms import OpenAI as LlamaIndexOpenAI -from llama_index.core.llms.llm import LLM # noqa: TCH002 +from llama_index.core.llms.llm import LLM # noqa: TC002 from llama_index.core.llms.openai_utils import ALL_AVAILABLE_MODELS, CHAT_MODELS from llama_index.embeddings.azure_openai import AzureOpenAIEmbedding from llama_index.embeddings.openai import OpenAIEmbedding