-
Notifications
You must be signed in to change notification settings - Fork 677
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
Develop #653
base: master
Are you sure you want to change the base?
Develop #653
Conversation
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.
Thank you for your hard work on this pull request! 😊 While your code meets most of the task requirements, there are a couple of critical issues that need to be addressed before we can approve it:
-
Incorrect Tuple Usage in Validator Classes: In both
ChildrenSlideLimitationValidator
andAdultSlideLimitationValidator
, the attributesage
,weight
, andheight
are mistakenly defined as tuples because of trailing commas. This needs to be corrected by removing the commas to ensure they are instances ofIntegerRange
. -
Incorrect Range Values: The
ChildrenSlideLimitationValidator
class has incorrect range values forweight
andheight
. Please update theweight
to be in the range of20
to50
, and theheight
to be in the range of80
to120
as per the task requirements.
Once these issues are resolved, your code will be in great shape! Keep up the good work, and feel free to reach out if you have any questions or need further assistance. 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review
button in the Reviewers tab.
app/main.py
Outdated
age = IntegerRange(4, 14), | ||
weight = IntegerRange(80, 120), | ||
height = IntegerRange(20, 50) |
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.
The class attributes age
, weight
, and height
in ChildrenSlideLimitationValidator
are incorrectly defined as tuples due to the trailing commas. Remove the commas to correctly define them as instances of IntegerRange
.
app/main.py
Outdated
age = IntegerRange(14, 60), | ||
weight = IntegerRange(120, 220), | ||
height = IntegerRange(50, 120) |
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.
Similar to the ChildrenSlideLimitationValidator
, the class attributes age
, weight
, and height
in AdultSlideLimitationValidator
are incorrectly defined as tuples. Remove the trailing commas to define them correctly as IntegerRange
instances.
No description provided.