Skip to content

Commit fbf1db6

Browse files
Fix pre-commit mypy issues (#588)
1 parent fb624bd commit fbf1db6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ markers = ["flaky", "network"]
4040

4141
[tool.mypy]
4242
# Docs: https://mypy.readthedocs.io/en/stable/config_file.html
43-
python_version = 3.10
43+
python_version = "3.10"
4444
check_untyped_defs = true
4545
ignore_missing_imports = true
4646
warn_unused_ignores = true

xcdat/temporal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def departures(
732732
# The original time dimension name is restored after grouped
733733
# arithmetic, so the labeled time dimension name is no longer needed
734734
# and therefore dropped.
735-
ds_obs = ds_obs.drop_vars(self._labeled_time.name)
735+
ds_obs = ds_obs.drop_vars(str(self._labeled_time.name))
736736

737737
if weighted and keep_weights:
738738
self._weights = ds_climo.time_wts

0 commit comments

Comments
 (0)