Skip to content

Commit 99745bb

Browse files
Merge #1126
1126: Fix type of from field in TaskResults so get_tasks doesn't crash r=curquiza a=ddboline # Pull Request ## Related issue Fixes #1125 ## What does this PR do? - Updates the type of TaskResults.from to match the type returned by rust ## PR checklist Please check if your PR fulfills the following requirements: - [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [ ] Have you read the contributing guidelines? - [ ] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Improved flexibility of the task results display by allowing the related field to be optional. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Daniel Boline <ddboline@gmail.com>
2 parents c5293d9 + a79bb85 commit 99745bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meilisearch/models/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class TaskResults(CamelBase):
110110
results: List[Task]
111111
limit: int
112112
total: int
113-
from_: int
113+
from_: Optional[int]
114114
next_: Optional[int]
115115

116116

0 commit comments

Comments
 (0)