File tree Expand file tree Collapse file tree 5 files changed +1
-180
lines changed Expand file tree Collapse file tree 5 files changed +1
-180
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ def _make_field_generic():
18
18
# submodules
19
19
from . import dataarray
20
20
from . import dataset
21
- from . import deprecated
22
21
from . import datamodel
23
22
from . import dataoptions
24
23
from . import typing
@@ -27,7 +26,6 @@ def _make_field_generic():
27
26
# aliases
28
27
from .dataarray import *
29
28
from .dataset import *
30
- from .deprecated import *
31
29
from .datamodel import *
32
30
from .dataoptions import *
33
31
from .typing import *
Original file line number Diff line number Diff line change @@ -84,12 +84,6 @@ def asdataarray(
84
84
DataArray object created from the dataclass object.
85
85
86
86
"""
87
- try :
88
- # for backward compatibility (deprecated in v1.0.0)
89
- dataoptions = DataOptions (dataclass .__dataarray_factory__ )
90
- except AttributeError :
91
- pass
92
-
93
87
try :
94
88
dataoptions = dataclass .__dataoptions__
95
89
except AttributeError :
Original file line number Diff line number Diff line change 9
9
# dependencies
10
10
import numpy as np
11
11
import xarray as xr
12
- from typing_extensions import TypedDict
12
+ from typing_extensions import TypedDict , get_type_hints
13
13
14
14
15
15
# submodules
16
- from .deprecated import get_type_hints
17
16
from .typing import (
18
17
ArrayLike ,
19
18
DataClass ,
Original file line number Diff line number Diff line change @@ -84,12 +84,6 @@ def asdataset(
84
84
Dataset object created from the dataclass object.
85
85
86
86
"""
87
- try :
88
- # for backward compatibility (deprecated in v1.0.0)
89
- dataoptions = DataOptions (dataclass .__dataset_factory__ )
90
- except AttributeError :
91
- pass
92
-
93
87
try :
94
88
dataoptions = dataclass .__dataoptions__
95
89
except AttributeError :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments