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 #1255

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

Solution #1255

wants to merge 2 commits into from

Conversation

oshumska
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.


Hello! 😊 It looks like you've done a great job implementing the class hierarchy for different types of software engineers. However, there's a critical issue with the FullStackDeveloper class that needs to be addressed before we can approve the pull request.

The super().__init__(name) call in the FullStackDeveloper class only initializes the BackendDeveloper class, leaving out the FrontendDeveloper class. This means that the frontend-specific skills are not being initialized, which could lead to unexpected behavior. To fix this, you should explicitly call the constructors of both parent classes to ensure all skills are properly learned.

Once you make this change, your code will be ready for approval. Keep up the great work, and don't hesitate to reach out if you have any questions! 🚀

✨ 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.


class FullStackDeveloper(BackendDeveloper, FrontendDeveloper):
def __init__(self, name: str) -> None:
super().__init__(name)

Choose a reason for hiding this comment

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

The use of super().__init__(name) in the FullStackDeveloper class will only call the constructor of the first parent class listed (BackendDeveloper). This means the FrontendDeveloper constructor is not called, and its specific skills are not initialized. Consider explicitly calling the constructors of both parent classes to ensure all skills are learned.

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