chore: Add pylint for DB-GPT core lib (#1076)

This commit is contained in:
Fangyin Cheng
2024-01-16 17:36:26 +08:00
committed by GitHub
parent 3a54d1ef9a
commit 40c853575a
79 changed files with 2213 additions and 839 deletions

View File

@@ -6,13 +6,13 @@ from dbgpt.storage.chat_history.base import BaseChatHistoryMemory
from .base import MemoryStoreType
# Import first for auto create table
from .store_type.meta_db_history import DbHistoryMemory
# TODO remove global variable
CFG = Config()
logger = logging.getLogger(__name__)
# Import first for auto create table
from .store_type.meta_db_history import DbHistoryMemory
class ChatHistory:
def __init__(self):

View File

@@ -5,6 +5,8 @@ from sqlalchemy.orm.session import Session
from dbgpt.util.pagination_utils import PaginationResult
from .db_manager import BaseQuery, DatabaseManager, db
# The entity type
T = TypeVar("T")
# The request schema type
@@ -12,7 +14,6 @@ REQ = TypeVar("REQ")
# The response schema type
RES = TypeVar("RES")
from .db_manager import BaseQuery, DatabaseManager, db
QUERY_SPEC = Union[REQ, Dict[str, Any]]