[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
4ff0d6134c
commit
ddcc9b8b5f
|
@ -82,7 +82,9 @@ def deprecated_call( # noqa: F811
|
|||
__tracebackhide__ = True
|
||||
if func is not None:
|
||||
args = (func,) + args
|
||||
return warns((DeprecationWarning, PendingDeprecationWarning, FutureWarning), *args, **kwargs)
|
||||
return warns(
|
||||
(DeprecationWarning, PendingDeprecationWarning, FutureWarning), *args, **kwargs
|
||||
)
|
||||
|
||||
|
||||
@overload
|
||||
|
|
|
@ -192,7 +192,7 @@ class TestDeprecatedCall:
|
|||
f()
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"warning_type", [PendingDeprecationWarning, DeprecationWarning,FutureWarning]
|
||||
"warning_type", [PendingDeprecationWarning, DeprecationWarning, FutureWarning]
|
||||
)
|
||||
@pytest.mark.parametrize("mode", ["context_manager", "call"])
|
||||
@pytest.mark.parametrize("call_f_first", [True, False])
|
||||
|
|
Loading…
Reference in New Issue