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/7561#issuecomment-1497352228,https://api.github.com/repos/pydata/xarray/issues/7561,1497352228,IC_kwDOAMm_X85ZP8gk,14371165,2023-04-05T11:47:34Z,2023-04-05T11:47:34Z,MEMBER,"I'm not sure about the rest of the errors, @dcherian. Maybe IndexVariable needs to use the DataWithCoords mixin? ``` xarray/core/groupby.py:577: error: Value of type variable ""DataAlignable"" of ""align"" cannot be ""Union[DataArray, IndexVariable]"" [type-var] xarray/core/groupby.py:577: error: Value of type variable ""DataAlignable"" of ""align"" cannot be ""Union[Dataset, DataArray, IndexVariable]"" [type-var] xarray/tests/test_groupby.py:55: error: List item 1 has incompatible type ""int""; expected ""slice"" [list-item] ``` https://github.com/pydata/xarray/blob/d4db16699f30ad1dc3e6861601247abf4ac96567/xarray/core/alignment.py#L581-L588 https://github.com/pydata/xarray/blob/d4db16699f30ad1dc3e6861601247abf4ac96567/xarray/core/alignment.py#L31 https://github.com/pydata/xarray/blob/d4db16699f30ad1dc3e6861601247abf4ac96567/xarray/core/common.py#L376-L377 ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1600382587