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-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-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-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-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