fix: drop some type fixme (#20344)

This commit is contained in:
yihong
2025-05-30 14:10:09 +08:00
committed by GitHub
parent 9b47f9f786
commit 5a991295e0
10 changed files with 43 additions and 45 deletions

View File

@@ -85,7 +85,6 @@ class BaiduVector(BaseVector):
end = min(start + batch_size, total_count)
rows = []
assert len(metadatas) == total_count, "metadatas length should be equal to total_count"
# FIXME do you need this assert?
for i in range(start, end, 1):
row = Row(
id=metadatas[i].get("doc_id", str(uuid.uuid4())),

View File

@@ -245,4 +245,4 @@ class TidbService:
return cluster_infos
else:
response.raise_for_status()
return [] # FIXME for mypy, This line will not be reached as raise_for_status() will raise an exception
return []