html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/3829#issuecomment-594682466,https://api.github.com/repos/pydata/xarray/issues/3829,594682466,MDEyOklzc3VlQ29tbWVudDU5NDY4MjQ2Ng==,7441788,2020-03-04T17:27:09Z,2020-03-04T17:27:09Z,CONTRIBUTOR,"@keewis, thanks for the suggestions. Both seem reasonable. In your first example, if you wanted to prohibit `obj.weighted.sum(dim)`, you could just check for `self._weight` in `sum()`. Though I suppose it would be nice to be able to have the interpreter enforce the requirement and not have to do an explicit check in every method.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,575564170