functools: add missing arguments to update_wrapper and wraps

Still dummy though.
pull/230/head
Riccardo Magliocchetti 2017-11-05 10:58:01 +01:00
rodzic f08c8dfc9d
commit 7945617727
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -6,15 +6,16 @@ def partial(func, *args, **kwargs):
return _partial
def update_wrapper(wrapper, wrapped):
def update_wrapper(wrapper, wrapped, assigned=None, updated=None):
# Dummy impl
return wrapper
def wraps(wrapped):
def wraps(wrapped, assigned=None, updated=None):
# Dummy impl
return lambda x: x
def reduce(function, iterable, initializer=None):
it = iter(iterable)
if initializer is None: