Skip to content

Commit 7945617

Browse files
committed
functools: add missing arguments to update_wrapper and wraps
Still dummy though.
1 parent f08c8df commit 7945617

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

functools/functools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ def _partial(*more_args, **more_kwargs):
66
return _partial
77

88

9-
def update_wrapper(wrapper, wrapped):
9+
def update_wrapper(wrapper, wrapped, assigned=None, updated=None):
1010
# Dummy impl
1111
return wrapper
1212

1313

14-
def wraps(wrapped):
14+
def wraps(wrapped, assigned=None, updated=None):
1515
# Dummy impl
1616
return lambda x: x
1717

18+
1819
def reduce(function, iterable, initializer=None):
1920
it = iter(iterable)
2021
if initializer is None:

0 commit comments

Comments
 (0)