chore: Add pylint for DB-GPT rag lib (#1267)

This commit is contained in:
Fangyin Cheng
2024-03-07 23:27:43 +08:00
committed by GitHub
parent aaaf34db17
commit 7446817340
70 changed files with 1135 additions and 587 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Iterable, Optional
from typing import Any, Iterable, List, Optional, Tuple
from urllib.parse import quote
from urllib.parse import quote_plus as urlquote
@@ -68,7 +68,7 @@ class StarRocksConnect(RDBMSDatabase):
"""Get user info."""
return []
def get_fields(self, table_name, db_name="database()"):
def get_fields(self, table_name, db_name="database()") -> List[Tuple]:
"""Get column fields about specified table."""
session = self._db_sessions()
if db_name != "database()":