Skip to content

Commit

Permalink
fix broken docstring of decorated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyer-a committed May 7, 2024
1 parent 7e61868 commit 9f43488
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyfar/_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from pyfar.classes.warnings import PyfarDeprecationWarning
import warnings
import functools


# Decorator function to rename parameters to be deprecated
def rename_arg(arg_map, warning_message):

"""
Function for deprecating or renaming arguments.
Expand Down Expand Up @@ -39,6 +41,7 @@ def rename_arg(arg_map, warning_message):
"""

def decorator(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
new_kwargs = {}
for kwarg, value in kwargs.items():
Expand Down

0 comments on commit 9f43488

Please sign in to comment.