From cae1460ed04f3edc47a8de1c512eed367cc45aab Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 1 Oct 2023 13:07:07 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/deprecate/deprecation.py | 3 ++- src/deprecate/utils.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/deprecate/deprecation.py b/src/deprecate/deprecation.py index aa1ff67..6be9e85 100644 --- a/src/deprecate/deprecation.py +++ b/src/deprecate/deprecation.py @@ -164,7 +164,8 @@ def deprecated( args_extra: Optional[Dict[str, Any]] = None, skip_if: Union[bool, Callable] = False, ) -> Callable: - """Decorate a function or class with warning message and pass all arguments directly to the target class/method. + """Decorate a function or class with warning message and pass all arguments + directly to the target class/method. Args: target: Function or method to forward the call. If set ``None``, no forwarding is applied and only warn. diff --git a/src/deprecate/utils.py b/src/deprecate/utils.py index b42023e..aedf7e3 100644 --- a/src/deprecate/utils.py +++ b/src/deprecate/utils.py @@ -73,5 +73,7 @@ def no_warning_call(warning_type: Optional[Type[Warning]] = None, match: Optiona def void(*args: Any, **kwrgs: Any) -> Any: - """Empty function which does nothing, just let your IDE stop complaining about unused arguments.""" + """Empty function which does nothing, just let your IDE stop complaining + about unused arguments. + """ _, _ = args, kwrgs