From 5d5f864716a6b6785e20e4e8a458c5ed70014b3f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 17:03:42 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/deprecate/__init__.py | 1 + src/deprecate/deprecation.py | 1 + src/deprecate/utils.py | 1 + tests/collection_targets.py | 1 + tests/test_classes.py | 1 + tests/test_functions.py | 1 + 6 files changed, 6 insertions(+) diff --git a/src/deprecate/__init__.py b/src/deprecate/__init__.py index f6653b7..b30387a 100644 --- a/src/deprecate/__init__.py +++ b/src/deprecate/__init__.py @@ -1,4 +1,5 @@ """Deprecation package.""" + import os _PATH_PACKAGE = os.path.realpath(os.path.dirname(__file__)) diff --git a/src/deprecate/deprecation.py b/src/deprecate/deprecation.py index 1d22492..1af7544 100644 --- a/src/deprecate/deprecation.py +++ b/src/deprecate/deprecation.py @@ -3,6 +3,7 @@ Copyright (C) 2020-2023 Jiri Borovec <...> """ + import inspect from functools import partial, wraps from typing import Any, Callable, Dict, Optional, Union diff --git a/src/deprecate/utils.py b/src/deprecate/utils.py index c11ea06..36cf38f 100644 --- a/src/deprecate/utils.py +++ b/src/deprecate/utils.py @@ -3,6 +3,7 @@ Copyright (C) 2020-2023 Jiri Borovec <...> """ + import inspect import warnings from contextlib import contextmanager diff --git a/tests/collection_targets.py b/tests/collection_targets.py index a2fc326..a460f40 100644 --- a/tests/collection_targets.py +++ b/tests/collection_targets.py @@ -1,4 +1,5 @@ """Copyright (C) 2020-2023 Jiri Borovec <...>.""" + from typing import Any diff --git a/tests/test_classes.py b/tests/test_classes.py index 97e7fff..60e192c 100644 --- a/tests/test_classes.py +++ b/tests/test_classes.py @@ -1,4 +1,5 @@ """Copyright (C) 2020-2023 Jiri Borovec <...>.""" + from functools import partial from typing import Any from warnings import warn diff --git a/tests/test_functions.py b/tests/test_functions.py index 5dded1e..5663dd7 100644 --- a/tests/test_functions.py +++ b/tests/test_functions.py @@ -1,4 +1,5 @@ """Copyright (C) 2020-2023 Jiri Borovec <...>.""" + import pytest from deprecate.utils import no_warning_call