From 6c1dd952e267a8c12779440385c220d5d9e8b396 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 00:19:18 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xarray/core/missing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xarray/core/missing.py b/xarray/core/missing.py index f4cd0facd7c..5a733e911c0 100644 --- a/xarray/core/missing.py +++ b/xarray/core/missing.py @@ -802,7 +802,10 @@ def _interpnd( # Convert everything to Variables, since that makes applying # `_localize` and `_floatize_x` much easier - x = [Variable([f"dim_{nconst + dim}"], _x, fastpath=True) for dim, _x in enumerate(coords[:n_x])] + x = [ + Variable([f"dim_{nconst + dim}"], _x, fastpath=True) + for dim, _x in enumerate(coords[:n_x]) + ] new_x = list( broadcast_variables( *(