File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ jobs:
117
117
python xarray/util/print_versions.py
118
118
- name : Install mypy
119
119
run : |
120
- python -m pip install "mypy<1.7 " --force-reinstall
120
+ python -m pip install "mypy<1.8 " --force-reinstall
121
121
122
122
- name : Run mypy
123
123
run : |
@@ -171,7 +171,7 @@ jobs:
171
171
python xarray/util/print_versions.py
172
172
- name : Install mypy
173
173
run : |
174
- python -m pip install "mypy<1.7 " --force-reinstall
174
+ python -m pip install "mypy<1.8 " --force-reinstall
175
175
176
176
- name : Run mypy
177
177
run : |
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ Internal Changes
79
79
- :py:meth: `DataArray.bfill ` & :py:meth: `DataArray.ffill ` now use numbagg by
80
80
default, which is up to 5x faster where parallelization is possible. (:pull: `8339 `)
81
81
By `Maximilian Roos <https://github.com/max-sixty >`_.
82
+ - Update mypy version to 1.7 (:issue: `8448 `, :pull: `8501 `).
83
+ By `Michael Niklas <https://github.com/headtr1ck >`_.
82
84
83
85
.. _whats-new.2023.11.0 :
84
86
Original file line number Diff line number Diff line change @@ -681,7 +681,7 @@ def align(
681
681
...
682
682
683
683
684
- def align ( # type: ignore[misc]
684
+ def align (
685
685
* objects : T_Alignable ,
686
686
join : JoinOptions = "inner" ,
687
687
copy : bool = True ,
@@ -1153,7 +1153,7 @@ def broadcast(
1153
1153
...
1154
1154
1155
1155
1156
- def broadcast ( # type: ignore[misc]
1156
+ def broadcast (
1157
1157
* args : T_Alignable , exclude : str | Iterable [Hashable ] | None = None
1158
1158
) -> tuple [T_Alignable , ...]:
1159
1159
"""Explicitly broadcast any number of DataArray or Dataset objects against
Original file line number Diff line number Diff line change @@ -7979,8 +7979,8 @@ def sortby(
7979
7979
variables = variables
7980
7980
arrays = [v if isinstance (v , DataArray ) else self [v ] for v in variables ]
7981
7981
aligned_vars = align (self , * arrays , join = "left" )
7982
- aligned_self = aligned_vars [0 ]
7983
- aligned_other_vars : tuple [DataArray , ...] = aligned_vars [1 :]
7982
+ aligned_self = cast ( "Self" , aligned_vars [0 ])
7983
+ aligned_other_vars = cast ( tuple [DataArray , ...], aligned_vars [1 :])
7984
7984
vars_by_dim = defaultdict (list )
7985
7985
for data_array in aligned_other_vars :
7986
7986
if data_array .ndim != 1 :
You can’t perform that action at this time.
0 commit comments