diff --git a/tests/test_indicators.py b/tests/test_indicators.py index 37f1b42e5..5a1cdba78 100644 --- a/tests/test_indicators.py +++ b/tests/test_indicators.py @@ -1,6 +1,7 @@ # pylint: disable=unsubscriptable-object,function-redefined # Tests for the Indicator objects from __future__ import annotations + import gc import json from inspect import signature diff --git a/xclim/core/indicator.py b/xclim/core/indicator.py index c5bb22556..2c8f38c49 100644 --- a/xclim/core/indicator.py +++ b/xclim/core/indicator.py @@ -100,6 +100,7 @@ """ from __future__ import annotations + import re import warnings import weakref @@ -165,7 +166,6 @@ load_module, ) - # Indicators registry registry = {} # Main class registry base_registry = {} diff --git a/xclim/core/utils.py b/xclim/core/utils.py index 44c5929db..b28d7f550 100644 --- a/xclim/core/utils.py +++ b/xclim/core/utils.py @@ -6,6 +6,7 @@ """ from __future__ import annotations + import functools import importlib.util import logging @@ -23,7 +24,6 @@ from dask import array as dsk from yaml import safe_dump, safe_load - logger = logging.getLogger("xclim") diff --git a/xclim/indicators/atmos/_temperature.py b/xclim/indicators/atmos/_temperature.py index 142a4c994..d1efd311a 100644 --- a/xclim/indicators/atmos/_temperature.py +++ b/xclim/indicators/atmos/_temperature.py @@ -7,7 +7,6 @@ from xclim.core.indicator import Daily, Indicator, ResamplingIndicatorWithIndexing from xclim.core.utils import InputKind - __all__ = [ "australian_hardiness_zones", "biologically_effective_degree_days",