From fbf1db68fd6328d5a534e0c1e57e22e6fdd70c76 Mon Sep 17 00:00:00 2001 From: Tom Vo Date: Tue, 16 Jan 2024 11:41:12 -0800 Subject: [PATCH] Fix pre-commit mypy issues (#588) --- pyproject.toml | 2 +- xcdat/temporal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 116e2f52..6ae6def0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ markers = ["flaky", "network"] [tool.mypy] # Docs: https://mypy.readthedocs.io/en/stable/config_file.html -python_version = 3.10 +python_version = "3.10" check_untyped_defs = true ignore_missing_imports = true warn_unused_ignores = true diff --git a/xcdat/temporal.py b/xcdat/temporal.py index a0daf9a4..05e7db57 100644 --- a/xcdat/temporal.py +++ b/xcdat/temporal.py @@ -732,7 +732,7 @@ def departures( # The original time dimension name is restored after grouped # arithmetic, so the labeled time dimension name is no longer needed # and therefore dropped. - ds_obs = ds_obs.drop_vars(self._labeled_time.name) + ds_obs = ds_obs.drop_vars(str(self._labeled_time.name)) if weighted and keep_weights: self._weights = ds_climo.time_wts