Skip to content

Commit 88612ce

Browse files
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 dependencies
1 parent cf87ba4 commit 88612ce

File tree

4 files changed

+503
-107
lines changed

4 files changed

+503
-107
lines changed

.github/workflows/ci-additional.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
shell: bash -l {0}
9393
env:
9494
CONDA_ENV_FILE: ci/requirements/environment.yml
95-
PYTHON_VERSION: "3.11"
95+
PYTHON_VERSION: "3.12"
9696

9797
steps:
9898
- uses: actions/checkout@v4

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ accel = ["scipy", "bottleneck", "numbagg", "numba>=0.54", "flox", "opt_einsum"]
3737
complete = ["xarray[accel,etc,io,parallel,viz]"]
3838
dev = [
3939
"hypothesis",
40+
"jinja2",
4041
"mypy",
4142
"pre-commit",
4243
"pytest",

0 commit comments

Comments
 (0)