python-makefun icon indicating copy to clipboard operation
python-makefun copied to clipboard

KeyError when using a string `new_sig` in `@wraps`

Open smarie opened this issue 3 years ago • 0 comments

def f(a):
    return 2 * a

@wraps(f, new_sig="_results_bag()")
def g():
    return f(2)

raises a KeyError

smarie avatar Sep 24 '22 15:09 smarie