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,5 +1,5 @@
import re
from typing import Any, Dict, Iterable, List, Optional
from typing import Any, Dict, Iterable, List, Optional, Tuple
import sqlparse
from sqlalchemy import MetaData, text
@@ -145,7 +145,7 @@ class ClickhouseConnect(RDBMSDatabase):
for name, column_type, _, _, comment in fields[0]
]
def get_fields(self, table_name):
def get_fields(self, table_name) -> List[Tuple]:
"""Get column fields about specified table."""
session = self.client