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/5631#issuecomment-885927432,https://api.github.com/repos/pydata/xarray/issues/5631,885927432,IC_kwDOAMm_X840zi4I,1328158,2021-07-23T21:39:54Z,2021-07-23T21:39:54Z,NONE,"Thanks to all for your help. Installing typing-extensions did solve the problem, thanks for the heads up @rhkleijn ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,951644054
https://github.com/pydata/xarray/issues/5631#issuecomment-885867225,https://api.github.com/repos/pydata/xarray/issues/5631,885867225,IC_kwDOAMm_X840zULZ,32801740,2021-07-23T19:27:45Z,2021-07-23T19:35:44Z,CONTRIBUTOR,From https://github.com/numpy/numpy/issues/19521: installing typing-extensions may help when running on python 3.7.,"{""total_count"": 1, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 1, ""rocket"": 0, ""eyes"": 0}",,951644054
https://github.com/pydata/xarray/issues/5631#issuecomment-885834075,https://api.github.com/repos/pydata/xarray/issues/5631,885834075,IC_kwDOAMm_X840zMFb,1217238,2021-07-23T18:50:37Z,2021-07-23T18:50:37Z,MEMBER,"OK, closing this over here since it seems to be a bug with numpy rather than xarray","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,951644054
https://github.com/pydata/xarray/issues/5631#issuecomment-885828529,https://api.github.com/repos/pydata/xarray/issues/5631,885828529,IC_kwDOAMm_X840zKux,43218622,2021-07-23T18:39:47Z,2021-07-23T18:45:28Z,NONE,"I get the same error, as expected:
```python
>>> import numpy.typing
Traceback (most recent call last):
File """", line 1, in
File ""env/lib/python3.7/site-packages/numpy/typing/__init__.py"", line 316, in
from ._dtype_like import (
File ""env/lib/python3.7/site-packages/numpy/typing/_dtype_like.py"", line 95, in
class _SupportsDType(Generic[_DType_co]):
NameError: name '_DType_co' is not defined
>>> numpy.version.version
'1.21.1'
```
numpy is aware of this [issue.](https://github.com/numpy/numpy/issues/19521) It looks like it is only an issue for `python 3.7`.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,951644054
https://github.com/pydata/xarray/issues/5631#issuecomment-885805721,https://api.github.com/repos/pydata/xarray/issues/5631,885805721,IC_kwDOAMm_X840zFKZ,1217238,2021-07-23T17:57:22Z,2021-07-23T17:57:22Z,MEMBER,What happens if you just write `import numpy.typing` ?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,951644054
https://github.com/pydata/xarray/issues/5631#issuecomment-885792974,https://api.github.com/repos/pydata/xarray/issues/5631,885792974,IC_kwDOAMm_X840zCDO,43218622,2021-07-23T17:34:48Z,2021-07-23T17:36:04Z,NONE,"I get the same error, but can `import numpy` with/without `xarray` installed. I'm running python 3.7.7 on RHEL 7.9 (Maipo):
```python
$ pip install --upgrade pip
$ pip install xarray
$ python3
>>> import numpy
>>> import xarray
Traceback (most recent call last):
File """", line 1, in
File ""env/lib/python3.7/site-packages/xarray/__init__.py"", line 3, in
from . import testing, tutorial, ufuncs
File ""env/lib/python3.7/site-packages/xarray/testing.py"", line 8, in
from xarray.core import duck_array_ops, formatting, utils
File ""env/lib/python3.7/site-packages/xarray/core/duck_array_ops.py"", line 16, in
from . import dask_array_compat, dask_array_ops, dtypes, npcompat, nputils
File ""env/lib/python3.7/site-packages/xarray/core/npcompat.py"", line 81, in
from numpy.typing import ArrayLike, DTypeLike
File ""env/lib/python3.7/site-packages/numpy/typing/__init__.py"", line 316, in
from ._dtype_like import (
File ""env/lib/python3.7/site-packages/numpy/typing/_dtype_like.py"", line 95, in
class _SupportsDType(Generic[_DType_co]):
NameError: name '_DType_co' is not defined
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,951644054
https://github.com/pydata/xarray/issues/5631#issuecomment-885783054,https://api.github.com/repos/pydata/xarray/issues/5631,885783054,IC_kwDOAMm_X840y_oO,5635139,2021-07-23T17:16:03Z,2021-07-23T17:16:03Z,MEMBER,@monocongo does it raise an error if you try importing numpy without xarray installed?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,951644054