kopia lustrzana https://github.com/micropython/micropython-lib
functools: add missing arguments to update_wrapper and wraps
Still dummy though.pull/230/head
rodzic
f08c8dfc9d
commit
7945617727
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue