File tree 4 files changed +6
-5
lines changed
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11
11
hooks :
12
12
- id : flake8
13
13
- repo : https://github.com/pre-commit/mirrors-mypy
14
- rev : v0.720
14
+ rev : v0.720 # Must match ci/requirements/*.yml
15
15
hooks :
16
16
- id : mypy
17
17
# run these occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ dependencies:
15
15
- pytest-env
16
16
- coveralls
17
17
- flake8
18
+ - mypy==0.720 # Must match .pre-commit-config.yaml
18
19
- numpy>=1.12
19
20
- pandas>=0.19
20
21
- pip
@@ -34,5 +35,4 @@ dependencies:
34
35
- iris>=1.10
35
36
- pydap
36
37
- lxml
37
- - pip :
38
- - mypy==0.711
38
+
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ dependencies:
16
16
- pytest-env
17
17
- coveralls
18
18
- flake8
19
+ - mypy==0.720 # Must match .pre-commit-config.yaml
19
20
- numpy>=1.12
20
21
- pandas>=0.19
21
22
- pip
@@ -32,5 +33,4 @@ dependencies:
32
33
- lxml
33
34
- pydap
34
35
- pip :
35
- - mypy==0.650
36
36
- numbagg
Original file line number Diff line number Diff line change @@ -489,7 +489,8 @@ def __init__(
489
489
self ._indexes = None # type: Optional[OrderedDict[Any, pd.Index]]
490
490
491
491
if attrs is not None :
492
- self .attrs = attrs
492
+ self ._attrs = OrderedDict (attrs )
493
+
493
494
self ._encoding = None # type: Optional[Dict]
494
495
self ._initialized = True
495
496
You can’t perform that action at this time.
0 commit comments