Skip to content
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

'Solution' #627

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Hulk-hurry-Hulk-smash
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on implementing the system for validating visitor access to slides! 🎉 While the code meets the task requirements, there are a couple of areas for improvement. Consider using the IntegerRange descriptors in the Visitor class to ensure consistent validation of attributes. Additionally, you might want to add abstract methods to the SlideLimitationValidator class to fully leverage the benefits of using an abstract base class. Keep up the good work and happy coding! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

self.name = name
self.age = age
self.weight = weight
self.height = height


class SlideLimitationValidator(ABC):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SlideLimitationValidator class is intended to be an abstract class, but it does not define any abstract methods. Consider adding abstract methods to enforce implementation in subclasses.

Comment on lines +31 to +33
self.age = age
self.weight = weight
self.height = height

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Visitor class assigns values directly to age, weight, and height without using the IntegerRange descriptors. Consider using the descriptors to ensure that the values are validated upon assignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants