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

implement py-mutable-immutable #2033

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Viktor-Stadnik
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 meeting the task requirements and constraints! 🎉 Your code correctly categorizes variables into mutable and immutable types, and the implementation is well-structured. While there was a mention of a logical error in the type checking, the final conclusion indicates that your solution works as intended. Keep up the good work, and continue to pay attention to details like type checking to ensure your code is robust. Well done! 👏

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

]

for value in list_all_types:
if isinstance(value, tuple_immutable):

Choose a reason for hiding this comment

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

The isinstance function is used incorrectly here. The second argument should be a type or a tuple of types, but tuple_immutable is a tuple of type objects, not types themselves. You should check each element of tuple_immutable individually against value.

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