diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2021-03-31 06:49:33 +0200 |
|---|---|---|
| committer | Michele Simionato <michele.simionato@gmail.com> | 2021-03-31 06:49:33 +0200 |
| commit | 95132174ed34089ec620e928597fb8f4d2dd0e92 (patch) | |
| tree | 06f88e90b63cf0e937136d3cd4d8bd56de790c23 | |
| parent | 1b283da89f8b680c24da724cb5789c0e3f308cdf (diff) | |
| download | python-decorator-git-95132174ed34089ec620e928597fb8f4d2dd0e92.tar.gz | |
Added dec.__kwdefaults__
| -rw-r--r-- | src/decorator.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decorator.py b/src/decorator.py index da1c0c4..4aa312b 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -241,6 +241,7 @@ def decorator(caller, _func=None): dec.__doc__ = caller.__doc__ dec.__wrapped__ = caller dec.__qualname__ = caller.__qualname__ + dec.__kwdefaults__ = getattr(caller, '__kwdefaults__', None) dec.__dict__.update(caller.__dict__) return dec |
