Skip to content

Commit 96b7e9b

Browse files
committed
Build lib
1 parent fab3194 commit 96b7e9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fastcore/foundation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def copy_func(f):
2222
"Copy a non-builtin function (NB `copy.copy` does not work for this)"
2323
if not isinstance(f,FunctionType): return copy(f)
2424
fn = FunctionType(f.__code__, f.__globals__, f.__name__, f.__defaults__, f.__closure__)
25+
fn.__kwdefaults__ = f.__kwdefaults__
2526
fn.__dict__.update(f.__dict__)
2627
return fn
2728

0 commit comments

Comments
 (0)