We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would you be open to a PR that catches multiple errors and prints them all at once?
I was thinking that instead of the raise AttributeError(), the errors could be collected and then raised at the end
raise AttributeError()
abcmeta/abcmeta/__init__.py
Lines 157 to 187 in 4fef29b
Could be modified like this:
errors = [] for name, obj in vars(cls.__base__).items(): ... if name not in cls.__dict__: errors.append( "Derived class '{}' has not implemented '{}' method of the" " parent class '{}'.".format( cls.__name__, name, cls.__base__.__name__ ) ) continue ... if errors: raise AttributeError("\n\n".join(errors))
The text was updated successfully, but these errors were encountered:
Hi Kyle,
That's an excellent idea! 👍 Would you please send a PR, or I prepare it myself?
Sorry, something went wrong.
Submitting now! Just adding a new test
I just released the new version. Please check it and let me know if there is anything you need. :)
Cheers, Mort
Perfect, thanks! The Windows support and error index are really nice additions
Successfully merging a pull request may close this issue.
Would you be open to a PR that catches multiple errors and prints them all at once?
I was thinking that instead of the
raise AttributeError()
, the errors could be collected and then raised at the endabcmeta/abcmeta/__init__.py
Lines 157 to 187 in 4fef29b
Could be modified like this:
The text was updated successfully, but these errors were encountered: