-
Notifications
You must be signed in to change notification settings - Fork 32
Fixes in OOP notebook #340
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
Conversation
for more information, see https://pre-commit.ci
edoardob90
left a comment
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.
My only comment is on a type hint 😉
Co-authored-by: Edoardo Baldi <edoardo.baldi@empa.ch>
edoardob90
left a comment
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.
💯
Snowwpanda
left a comment
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.
Nice work @despadam.
I dont have much to say also since the PR was mostly text editing and formulation.
I found a mistake in the validation of the exercise oop_compare_persons. It might be a bit short notice to fix though. Let me know if you want input from me.
| " # Write your solution here\n", | ||
| " return" | ||
| ] | ||
| }, |
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.
I know no changes were made to the exercises, but i had a look at compare_persons, this exercise test doesn't actually work. because you create the class Person multiple times it is actually overwritten in the same context. The comparison always returns false because "isinstance(..)" is false

i think a fix might be a bit more complicated...
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.
I think this is related to #114
Co-authored-by: Pascal Su <pascal.su@empa.ch>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Snowwpanda
left a comment
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.
Looks good, thanks for the fix!
Co-authored-by: Pascal Su <pascal.su@empa.ch>
for more information, see https://pre-commit.ci
edoardob90
left a comment
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.
Ship it! 🚀
This PR does not make changes in the exercises, only makes some parts of the text clearer.