From 6ebaf297c6489ade456d91c66694fe0ef0f02753 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:27:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/xsdba/_adjustment.py | 2 +- src/xsdba/base.py | 3 ++- src/xsdba/formatting.py | 3 ++- src/xsdba/loess.py | 2 +- src/xsdba/options.py | 2 +- src/xsdba/utils.py | 2 +- src/xsdba/xclim_submodules/generic.py | 2 +- 7 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/xsdba/_adjustment.py b/src/xsdba/_adjustment.py index 3fae1ed..0626001 100644 --- a/src/xsdba/_adjustment.py +++ b/src/xsdba/_adjustment.py @@ -9,7 +9,7 @@ from __future__ import annotations from collections.abc import Sequence -from typing import Callable +from collections.abc import Callable import numpy as np import xarray as xr diff --git a/src/xsdba/base.py b/src/xsdba/base.py index 9f4e5de..b08fd39 100644 --- a/src/xsdba/base.py +++ b/src/xsdba/base.py @@ -9,7 +9,8 @@ import itertools from collections.abc import Sequence from inspect import _empty, signature -from typing import Any, Callable, NewType, TypeVar +from typing import Any, NewType, TypeVar +from collections.abc import Callable import cftime import dask.array as dsk diff --git a/src/xsdba/formatting.py b/src/xsdba/formatting.py index 325f37d..3407b2a 100644 --- a/src/xsdba/formatting.py +++ b/src/xsdba/formatting.py @@ -14,7 +14,8 @@ from collections.abc import Sequence from fnmatch import fnmatch from inspect import _empty, signature -from typing import Any, Callable +from typing import Any +from collections.abc import Callable import xarray as xr from boltons.funcutils import wraps diff --git a/src/xsdba/loess.py b/src/xsdba/loess.py index 05ef85f..057d400 100644 --- a/src/xsdba/loess.py +++ b/src/xsdba/loess.py @@ -5,7 +5,7 @@ from __future__ import annotations -from typing import Callable +from collections.abc import Callable from warnings import warn import numba diff --git a/src/xsdba/options.py b/src/xsdba/options.py index d69b914..c6f6a38 100644 --- a/src/xsdba/options.py +++ b/src/xsdba/options.py @@ -6,7 +6,7 @@ from __future__ import annotations from inspect import signature -from typing import Callable +from collections.abc import Callable from boltons.funcutils import wraps diff --git a/src/xsdba/utils.py b/src/xsdba/utils.py index 1cd9b85..05ce4ba 100644 --- a/src/xsdba/utils.py +++ b/src/xsdba/utils.py @@ -6,7 +6,7 @@ from __future__ import annotations import itertools -from typing import Callable +from collections.abc import Callable from warnings import warn import bottleneck as bn diff --git a/src/xsdba/xclim_submodules/generic.py b/src/xsdba/xclim_submodules/generic.py index de0c753..3ef0ac0 100644 --- a/src/xsdba/xclim_submodules/generic.py +++ b/src/xsdba/xclim_submodules/generic.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Callable +from collections.abc import Callable import xarray as xr