chore: avoid implicit optional in type annotations of method (#8727)

This commit is contained in:
Bowen Liang
2024-10-09 14:36:43 +08:00
committed by GitHub
parent b360feb4c1
commit 240b66d737
37 changed files with 91 additions and 71 deletions

View File

@@ -48,7 +48,7 @@ class MockTcvectordbClass:
description: str,
index: Index,
embedding: Embedding = None,
timeout: float = None,
timeout: Optional[float] = None,
) -> Collection:
return Collection(
self,
@@ -97,9 +97,9 @@ class MockTcvectordbClass:
def collection_delete(
self,
document_ids: list[str] = None,
document_ids: Optional[list[str]] = None,
filter: Filter = None,
timeout: float = None,
timeout: Optional[float] = None,
):
return {"code": 0, "msg": "operation success"}