You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I think it's a good idea, and if you have a PR at the ready, I'd be more than happy to merge it.
Thanks!
On Mon, Dec 7, 2020, at 10:03 AM, yzchen wrote:
Currently, it can only be
***@***.***()
def my_func():
pass
`
But, the following code is expected to run but fail:
***@***.***
def my_func():
pass
`
An fix can be easily done to decorator definition by
`def example2(_func=None, *, kw1=val1, kw2=val2):
if _func is None:
return functools.partials(example2, kw1=val1, kw2=kw2)
@functools.wraps(func)
def wrapper(*args, **kwargs):
# do things with kw1
return func(*args, **kwargs)
return wrapper
`
Currently, it can only be
But, the following code is expected to run but fail:
An fix can be easily done to decorator definition by
I am willing to make a PR if it is needed.
The text was updated successfully, but these errors were encountered: