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/pull/5950#issuecomment-1062165764,https://api.github.com/repos/pydata/xarray/issues/5950,1062165764,IC_kwDOAMm_X84_T10E,2448579,2022-03-08T20:11:14Z,2022-03-08T20:11:14Z,MEMBER,@shoyer can you take a look at the approach here? I'd like to finish this off soon.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-999121582,https://api.github.com/repos/pydata/xarray/issues/5950,999121582,IC_kwDOAMm_X847jWKu,14371165,2021-12-21T22:00:21Z,2021-12-21T22:00:21Z,MEMBER,"```
______ [doctest] xarray.core._reductions.DatasetResampleReductions.count _______
3063 >>> ds
3064
3065 Dimensions: (time: 6)
3066 Coordinates:
3067 * time (time) datetime64[ns] 2001-01-31 2001-02-28 ... 2001-06-30
3068 labels (time) >> ds.resample(time=""3M"").count()
Differences (unified diff with -expected +actual):
@@ -4,3 +4,3 @@
* time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
Data variables:
- da (time) int32 1 3 1
+ da (time) int64 1 3 1
```
I wonder why I don't get the same result?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-979692571,https://api.github.com/repos/pydata/xarray/issues/5950,979692571,IC_kwDOAMm_X846ZOwb,2448579,2021-11-26T04:41:07Z,2021-11-26T04:41:07Z,MEMBER,"My request was for #5734 but after merging the latest version of this branch, it passes! Thanks for checking.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-978611896,https://api.github.com/repos/pydata/xarray/issues/5950,978611896,IC_kwDOAMm_X846VG64,5635139,2021-11-25T00:44:18Z,2021-11-25T00:44:18Z,MEMBER,@dcherian does this mean the typing issue you mentioned is fixed? Or was that a different PR?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-974719669,https://api.github.com/repos/pydata/xarray/issues/5950,974719669,IC_kwDOAMm_X846GQq1,14371165,2021-11-20T22:20:02Z,2021-11-20T22:20:02Z,MEMBER,Keyword-only and some had the 3rd position arg as `keep_attrs` and in other cases it was `axis`.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-974714832,https://api.github.com/repos/pydata/xarray/issues/5950,974714832,IC_kwDOAMm_X846GPfQ,2448579,2021-11-20T21:36:40Z,2021-11-20T21:36:40Z,MEMBER,"Thanks @Illviljan
> a slightly breaking change now since some of these reduce functions had quite different arguments.
Can you describe these changes please? Is it the switch to keyword-only?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-974705168,https://api.github.com/repos/pydata/xarray/issues/5950,974705168,IC_kwDOAMm_X846GNIQ,14371165,2021-11-20T20:10:30Z,2021-11-20T20:10:30Z,MEMBER,"@dcherian I'm getting errors when I attempt to generate the doc examples:
```
(xarray-tests) C:\Users\J.W\Documents\GitHub\xarray>pytest --doctest-modules xarray/core/_reductions.py --accept || true
===================================================================== test session starts =====================================================================
platform win32 -- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: C:\Users\J.W\Documents\GitHub\xarray, configfile: setup.cfg
plugins: hypothesis-6.14.6, accept-0.1.5, cov-2.12.1, env-0.6.2, forked-1.3.0, xdist-2.3.0
collected 66 items
xarray\core\_reductions.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [100%]Traceback (most recent call last):
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\Scripts\pytest-script.py"", line 10, in
sys.exit(console_main())
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\config\__init__.py"", line 185, in console_main
code = main()
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\config\__init__.py"", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\hooks.py"", line 286, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\manager.py"", line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\manager.py"", line 84, in
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 208, in _multicall
return outcome.get_result()
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 187, in _multicall
res = hook_impl.function(*args)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\main.py"", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\main.py"", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\hooks.py"", line 286, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\manager.py"", line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\manager.py"", line 84, in
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 203, in _multicall
gen.send(outcome)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\terminal.py"", line 803, in pytest_sessionfinish
outcome.get_result()
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 187, in _multicall
res = hook_impl.function(*args)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pytest_accept\doctest_plugin.py"", line 169, in pytest_sessionfinish
original = list(path.read_text().splitlines())
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\pathlib.py"", line 1257, in read_text
return f.read()
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\encodings\cp1252.py"", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 22060: character maps to
'true' is not recognized as an internal or external command,
operable program or batch file.
(xarray-tests) C:\Users\J.W\Documents\GitHub\xarray>pytest --doctest-modules xarray/core/_reductions.py --accept || True
===================================================================== test session starts =====================================================================
platform win32 -- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: C:\Users\J.W\Documents\GitHub\xarray, configfile: setup.cfg
plugins: hypothesis-6.14.6, accept-0.1.5, cov-2.12.1, env-0.6.2, forked-1.3.0, xdist-2.3.0
collected 66 items
xarray\core\_reductions.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [100%]Traceback (most recent call last):
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\Scripts\pytest-script.py"", line 10, in
sys.exit(console_main())
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\config\__init__.py"", line 185, in console_main
code = main()
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\config\__init__.py"", line 162, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\hooks.py"", line 286, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\manager.py"", line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\manager.py"", line 84, in
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 208, in _multicall
return outcome.get_result()
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 187, in _multicall
res = hook_impl.function(*args)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\main.py"", line 316, in pytest_cmdline_main
return wrap_session(config, _main)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\main.py"", line 304, in wrap_session
config.hook.pytest_sessionfinish(
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\hooks.py"", line 286, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\manager.py"", line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\manager.py"", line 84, in
self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 203, in _multicall
gen.send(outcome)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\_pytest\terminal.py"", line 803, in pytest_sessionfinish
outcome.get_result()
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pluggy\callers.py"", line 187, in _multicall
res = hook_impl.function(*args)
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages\pytest_accept\doctest_plugin.py"", line 169, in pytest_sessionfinish
original = list(path.read_text().splitlines())
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\pathlib.py"", line 1257, in read_text
return f.read()
File ""C:\Users\J.W\anaconda3\envs\xarray-tests\lib\encodings\cp1252.py"", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 22060: character maps to
'True' is not recognized as an internal or external command,
operable program or batch file.
```
I get similar issues with the other commands as well using Windows 10. I managed to copy paste the output of generate_reductions so I got it running that way instead.
It passes all tests besides doctests now which a proper rerun should fix.
This became a slightly breaking change now since some of these reduce functions had quite different arguments.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-974689760,https://api.github.com/repos/pydata/xarray/issues/5950,974689760,IC_kwDOAMm_X846GJXg,14371165,2021-11-20T18:13:27Z,2021-11-20T18:13:27Z,MEMBER,"yeah, I saw that one, The groupby reduces doesn't have consistent args, finally mypy is being helpful. :)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-974687406,https://api.github.com/repos/pydata/xarray/issues/5950,974687406,IC_kwDOAMm_X846GIyu,2448579,2021-11-20T17:57:16Z,2021-11-20T17:58:12Z,MEMBER,"still failing :(
```
xarray/core/groupby.py:881: error: Definition of ""reduce"" in base class ""DataArrayGroupByBase"" is incompatible with definition in base class ""DataArrayGroupByReductions"" [misc]
xarray/core/groupby.py:1004: error: Definition of ""reduce"" in base class ""DatasetGroupByBase"" is incompatible with definition in base class ""DatasetGroupByReductions"" [misc]
xarray/core/dataset.py:4999: error: Argument 3 of ""reduce"" is incompatible with supertype ""DatasetReductions""; supertype defines the argument type as ""Union[int, Sequence[int], None]"" [override]
xarray/core/dataset.py:4999: note: This violates the Liskov substitution principle
xarray/core/dataset.py:4999: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
xarray/core/dataset.py:4999: error: Argument 4 of ""reduce"" is incompatible with supertype ""DatasetReductions""; supertype defines the argument type as ""Optional[bool]"" [override]
xarray/core/resample.py:160: error: Definition of ""reduce"" in base class ""DataArrayGroupByBase"" is incompatible with definition in base class ""DataArrayResampleReductions"" [misc]
Found 5 errors in 3 files (checked 2 source files)
```
I'vebeen using
```
Usage:
python xarray/util/generate_reductions.py > xarray/core/_reductions.py
pytest --doctest-modules xarray/core/_reductions.py --accept || true
pytest --doctest-modules xarray/core/_reductions.py
```
to generate the file","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-974636244,https://api.github.com/repos/pydata/xarray/issues/5950,974636244,IC_kwDOAMm_X846F8TU,14371165,2021-11-20T11:33:14Z,2021-11-20T11:34:19Z,MEMBER,"@dcherian could you run the generate_reductions.py now? I get some weird formatting issues on the docstrings when I copy paste from the console. :/
I think this fixes the typing issues. At least it was passing locally.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-974588586,https://api.github.com/repos/pydata/xarray/issues/5950,974588586,IC_kwDOAMm_X846Fwqq,14371165,2021-11-20T04:00:45Z,2021-11-20T04:00:45Z,MEMBER,"These mypy errors are quite tricky. Any ideas how to solve them? Here's a stripped down example:
```python
class DatasetReduce2(Protocol):
def reduce(self, func: Callable):
...
class DatasetReductions2:
def sum(self: DatasetReduce2, dim: Hashable) -> int:
return self.reduce(lambda x: x)
class Test(DatasetReductions2):
def __init__(self, a, b):
self.a = a
self.b = b
a = Test(1, 2)
a.sum(""z"")
Invalid self argument ""Test"" to attribute function ""sum"" with type ""Callable[[DatasetReduce2, Hashable], int]
```
It's posssible to avoid the failures using the previous import way instead of mixing in directly in the dataset/dataarray class, But I think the typing is simply stripped then instead, so that's no good either.
Interesting reading:
https://stackoverflow.com/questions/51930339/how-do-i-correctly-add-type-hints-to-mixin-classes","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-968138617,https://api.github.com/repos/pydata/xarray/issues/5950,968138617,IC_kwDOAMm_X845tJ95,14371165,2021-11-13T21:28:56Z,2021-11-13T21:28:56Z,MEMBER,"```
xarray/tests/test_groupby.py:77: error: Invalid self argument ""Dataset"" to attribute function ""sum"" with type ""Callable[[DatasetReduce, Optional[Hashable], Optional[bool], Optional[int], Optional[bool], KwArg(Any)], T_Dataset]"" [misc]
xarray/tests/test_groupby.py:77: error: Need type annotation for ""expected"" [var-annotated]
```
Maybe these are fixed with callback protocols?
https://github.com/python/mypy/issues/5485
https://mypy.readthedocs.io/en/latest/protocols.html#callback-protocols","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273
https://github.com/pydata/xarray/pull/5950#issuecomment-963399639,https://api.github.com/repos/pydata/xarray/issues/5950,963399639,IC_kwDOAMm_X845bE_X,2448579,2021-11-08T17:37:39Z,2021-11-08T17:37:39Z,MEMBER,"Could use some help with typing...
```
xarray/tests/test_groupby.py:77: error: Invalid self argument ""Dataset"" to attribute function ""sum"" with type ""Callable[[DatasetReduce, Optional[Hashable], Optional[bool], Optional[int], Optional[bool], KwArg(Any)], T_Dataset]"" [misc]
xarray/tests/test_groupby.py:77: error: Need type annotation for ""expected"" [var-annotated]
xarray/tests/test_groupby.py:460: error: Invalid self argument ""Dataset"" to attribute function ""mean"" with type ""Callable[[DatasetReduce, Optional[Hashable], Optional[bool], Optional[bool], KwArg(Any)], T_Dataset]"" [misc]
xarray/tests/test_groupby.py:460: error: has no attribute ""where"" [attr-defined]
xarray/tests/test_groupby.py:646: error: Invalid self argument ""Dataset"" to attribute function ""mean"" with type ""Callable[[DatasetReduce, Optional[Hashable], Optional[bool], Optional[bool], KwArg(Any)], T_Dataset]"" [misc]
xarray/tests/test_groupby.py:646: error: Need type annotation for ""expected"" [var-annotated]
xarray/tests/test_groupby.py:658: error: Invalid self argument ""DataArray"" to attribute function ""mean"" with type ""Callable[[DataArrayReduce, Optional[Hashable], Optional[bool], Optional[bool], KwArg(Any)], T_DataArray]"" [misc]
xarray/tests/test_groupby.py:658: error: has no attribute ""variable"" [attr-defined]
xarray/tests/test_computation.py:1867: error: Invalid self argument ""DataArray"" to attribute function ""sum"" with type ""Callable[[DataArrayReduce, Optional[Hashable], Optional[bool], Optional[int], Optional[bool], KwArg(Any)], T_DataArray]"" [misc]
xarray/tests/test_computation.py:1867: error: Need type annotation for ""expected"" [var-annotated]
xarray/tests/test_computation.py:1867: error: Argument 1 to ""sum"" of ""DataArrayReductions"" has incompatible type ""List[str]""; expected ""Optional[Hashable]"" [arg-type]
xarray/tests/test_computation.py:1867: note: Following member(s) of ""List[str]"" have conflicts:
xarray/tests/test_computation.py:1867: note: __hash__: expected ""Callable[[], int]"", got ""None""
xarray/tests/test_computation.py:1871: error: Invalid self argument ""DataArray"" to attribute function ""sum"" with type ""Callable[[DataArrayReduce, Optional[Hashable], Optional[bool], Optional[int], Optional[bool], KwArg(Any)], T_DataArray]"" [misc]
xarray/tests/test_computation.py:1882: error: Invalid self argument ""DataArray"" to attribute function ""sum"" with type ""Callable[[DataArrayReduce, Optional[Hashable], Optional[bool], Optional[int], Optional[bool], KwArg(Any)], T_DataArray]"" [misc]
xarray/tests/test_computation.py:1882: error: Argument 1 to ""sum"" of ""DataArrayReductions"" has incompatible type ""List[str]""; expected ""Optional[Hashable]"" [arg-type]
xarray/tests/test_computation.py:1882: note: Following member(s) of ""List[str]"" have conflicts:
xarray/tests/test_computation.py:1882: note: __hash__: expected ""Callable[[], int]"", got ""None""
xarray/tests/test_computation.py:1887: error: Invalid self argument ""DataArray"" to attribute function ""sum"" with type ""Callable[[DataArrayReduce, Optional[Hashable], Optional[bool], Optional[int], Optional[bool], KwArg(Any)], T_DataArray]"" [misc]
xarray/tests/test_computation.py:1887: error: Argument 1 to ""sum"" of ""DataArrayReductions"" has incompatible type ""List[str]""; expected ""Optional[Hashable]"" [arg-type]
xarray/tests/test_computation.py:1887: note: Following member(s) of ""List[str]"" have conflicts:
xarray/tests/test_computation.py:1887: note: __hash__: expected ""Callable[[], int]"", got ""None""
xarray/tests/test_computation.py:1892: error: Invalid self argument ""DataArray"" to attribute function ""sum"" with type ""Callable[[DataArrayReduce, Optional[Hashable], Optional[bool], Optional[int], Optional[bool], KwArg(Any)], T_DataArray]"" [misc]
xarray/tests/test_computation.py:1892: error: Argument 1 to ""sum"" of ""DataArrayReductions"" has incompatible type ""List[str]""; expected ""Optional[Hashable]"" [arg-type]
xarray/tests/test_computation.py:1892: note: Following member(s) of ""List[str]"" have conflicts:
xarray/tests/test_computation.py:1892: note: __hash__: expected ""Callable[[], int]"", got ""None""
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046990273