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
Currently PyCharm warns if a numeric operation is performed on an xarray object. We could suppress these by:
__add__ = NotImplemented
BaseDataObject
CMP_BINARY_OPS
NUM_BINARY_OPS
The text was updated successfully, but these errors were encountered:
I'd be happy with the first option, although I'd rather we use a function that actually gives a sensible error message, i.e.,
def _not_implemented(*args): return NotImplemented __add__ = _not_implemented
This does seem to be a point in favor of doing something more explicit rather than injecting numeric operations.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Currently PyCharm warns if a numeric operation is performed on an xarray object. We could suppress these by:
__add__ = NotImplemented
onto theBaseDataObject
(and all the other ops fromCMP_BINARY_OPS
&NUM_BINARY_OPS
), so IDEs know about themThe text was updated successfully, but these errors were encountered: