mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-15 14:11:14 +00:00
chore: Add pylint for DB-GPT core lib (#1076)
This commit is contained in:
@@ -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):
|
||||
|
@@ -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]]
|
||||
|
||||
|
Reference in New Issue
Block a user