Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 1, 2023
1 parent 2c298fd commit cae1460
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/deprecate/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion src/deprecate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cae1460

Please sign in to comment.