summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2021-03-31 06:49:33 +0200
committerMichele Simionato <michele.simionato@gmail.com>2021-03-31 06:49:33 +0200
commit95132174ed34089ec620e928597fb8f4d2dd0e92 (patch)
tree06f88e90b63cf0e937136d3cd4d8bd56de790c23
parent1b283da89f8b680c24da724cb5789c0e3f308cdf (diff)
downloadpython-decorator-git-95132174ed34089ec620e928597fb8f4d2dd0e92.tar.gz
Added dec.__kwdefaults__
-rw-r--r--src/decorator.py1
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