Skip to content

ClassVar from typing is supported python version >=3.5.3 #2866

@TAlonglong

Description

@TAlonglong
Python 3.5.2 (default, Nov 12 2018, 13:43:14) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import xarray.ufuncs as xu
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/software/pytroll/virtual-env-test/pytroll/lib/python3.5/site-packages/xarray/__init__.py", line 26, in <module>
    from .coding.cftime_offsets import cftime_range
  File "/software/pytroll/virtual-env-test/pytroll/lib/python3.5/site-packages/xarray/coding/cftime_offsets.py", line 46, in <module>
    from typing import ClassVar, Optional
ImportError: cannot import name 'ClassVar'
>>> 

Looks like the setup.py https://github.com/pydata/xarray/blob/master/setup.py#L25 python version 3.5.2 should be supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions