-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
The following code causes a type error with mypy:
collection.documents.delete({"truncate": True})test.py:1: error: Argument 1 to "delete" of "Documents" has incompatible type "dict[str, bool]";
expected "DeleteQueryParameters | None" [arg-type]
collection.documents.delete({"truncate": True})
Because the filter_by key is declared as required in the declaration of DeleteQueryParameters:
typesense-python/src/typesense/types/document.py
Lines 929 to 932 in bd8a43d
| truncate: typing.NotRequired[bool] | |
| filter_by: str | |
| batch_size: typing.NotRequired[int] | |
| ignore_not_found: typing.NotRequired[bool] |
Metadata
Metadata
Assignees
Labels
No labels