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
methods __add__ and __mul__ should
__add__
__mul__
return NotImplemented
whenever there's no known answer. This is the expected behaviour, stated in https://docs.python.org/3/reference/datamodel.html#emulating-numeric-types
If one of those methods does not support the operation with the supplied arguments, it should return NotImplemented.
The text was updated successfully, but these errors were encountered:
matiasg
No branches or pull requests
methods
__add__
and__mul__
shouldwhenever there's no known answer. This is the expected behaviour, stated in
https://docs.python.org/3/reference/datamodel.html#emulating-numeric-types
The text was updated successfully, but these errors were encountered: