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

2.4 Inheritence - Quotation marks lead to generic NotImplementedError output #314

Open
mo-st opened this issue Oct 1, 2024 · 0 comments
Assignees

Comments

@mo-st
Copy link

mo-st commented Oct 1, 2024

raise NotImplementedError("method_name")

Issue: These quotation marks will lead to the NotImplementedError statically printing out the string "method_name" instead of the value stored in the method_name variable, which would be more desirable.

Solution: I believe the intended effect would be to inform about which method specifically could not be found through recursive parent dictionary checking. This can be achieved by removing the quotation marks around the method_name.

Thank you for creating and maintaining this resource, it's awesome!

@gvwilson gvwilson self-assigned this Oct 1, 2024
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

No branches or pull requests

2 participants