-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/3136 feature add more docstrings to pydantic models feedbackdataset #3137
Feature/3136 feature add more docstrings to pydantic models feedbackdataset #3137
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## releases/v1.9.0 #3137 +/- ##
===================================================
- Coverage 90.92% 90.91% -0.01%
===================================================
Files 215 215
Lines 11312 11312
===================================================
- Hits 10285 10284 -1
- Misses 1027 1028 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! But I'd add the default value in the docstrings, and use more generic examples (the comments below apply to all the occurrences)
chore: resolved suggestions review Alvaro Co-authored-by: Alvaro Bartolome <[email protected]>
Co-authored-by: Alvaro Bartolome <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but still some defaults are missing, settings
should be removed from the schema init, and a minor change in the CHANGELOG.md
😄
required: Whether the question is required or not. | ||
settings: The settings of the question. | ||
labels: The labels of the label question. | ||
visible_labels: The number of visible labels of the label question. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we're also missing the defaults! And in the rest of the schemas too!
title: The title of the question. | ||
description: The description of the question. | ||
required: Whether the question is required or not. | ||
settings: The settings of the question. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I would remove the settings
from everywhere, since the user is not able to modify them, so we can ignore them! Also in the next minor release we'll remove those, so either keep them as is and remove then in the next release, or remove them now to avoid confusion.
Description
I noticed some missing Pydantic Docstring in the
FeedbackDataset
schemas.argilla/client/feedback/schemas.py
ResponseSchema
andValueSchema
, which feels weird if you need to import them separately fromargilla.client.feedback.schemas
argilla.__init__
importsargilla.__init__
importsCloses #3136
Type of change
How Has This Been Tested
N.A.
Checklist