Commit 88612ce
authored
Typing annotations for arithmetic overrides (e.g., DataArray + Dataset) (#9688)
* Typing annotations for arithmetic overrides (e.g., DataArray + Dataset)
This change explicitly adds annotations for arithmetic like
DataArray + Dataset in `_typed_ops.py`.
Note: I've added a dependency on jinja2, a standard Python templating
engine. It is only required for manually regenerating typed operations,
which should impact only a handful of xarray developers.
Fixes GH9656
* Update mypy on GitHub CI to use python 3.12
* add jinja2 to dev dependencies1 parent cf87ba4 commit 88612ce
File tree
4 files changed
+503
-107
lines changed- .github/workflows
- xarray
- core
- util
4 files changed
+503
-107
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments