Skip to content

Commit

Permalink
Merge branch 'ruff/I' of https://github.com/Borda/pyDeprecate into ru…
Browse files Browse the repository at this point in the history
…ff/I
  • Loading branch information
Borda committed Oct 1, 2023
2 parents e5d0d59 + 8042f57 commit c8d63ad
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/deprecate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import inspect
import warnings
from contextlib import contextmanager
from typing import Any, Generator, List, Optional, Type, Union, Callable, Tuple
from typing import Any, Callable, Generator, List, Optional, Tuple, Type, Union


def get_func_arguments_types_defaults(func: Callable) -> List[Tuple[str, Tuple, Any]]:
Expand Down
2 changes: 1 addition & 1 deletion tests/collection_deprecate.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Copyright (C) 2020-2023 Jiri Borovec <...>."""

from deprecate import deprecated, void
from sklearn.metrics import accuracy_score

from deprecate import deprecated, void
from tests.collection_targets import base_pow_args, base_sum_kwargs

_SHORT_MSG_FUNC = "`%(source_name)s` >> `%(target_name)s` in v%(deprecated_in)s rm v%(remove_in)s."
Expand Down
2 changes: 1 addition & 1 deletion tests/test_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from warnings import warn

import pytest

from deprecate.deprecation import deprecated
from deprecate.utils import no_warning_call

from tests.collection_targets import NewCls

_deprecation_warning = partial(warn, category=DeprecationWarning)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_functions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Copyright (C) 2020-2023 Jiri Borovec <...>."""
import pytest

from deprecate.utils import no_warning_call

from tests.collection_deprecate import (
depr_accuracy_extra,
depr_accuracy_map,
Expand Down
1 change: 0 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from warnings import warn

import pytest

from deprecate.utils import no_warning_call


Expand Down

0 comments on commit c8d63ad

Please sign in to comment.