kopia lustrzana https://github.com/micropython/micropython-lib
functools: Add dummy update_wrapper(), wraps().
rodzic
5262fb8237
commit
d4a7fda960
|
@ -4,3 +4,13 @@ def partial(func, *args, **kwargs):
|
|||
kw.update(more_kwargs)
|
||||
func(*(args + more_args), **kw)
|
||||
return _partial
|
||||
|
||||
|
||||
def update_wrapper(wrapper, wrapped):
|
||||
# Dummy impl
|
||||
return wrapper
|
||||
|
||||
|
||||
def wraps(wrapped):
|
||||
# Dummy impl
|
||||
return wrapped
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
srctype = micropython-lib
|
||||
type = module
|
||||
version = 0.0.1
|
||||
version = 0.0.2
|
||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
|||
|
||||
|
||||
setup(name='micropython-functools',
|
||||
version='0.0.1',
|
||||
version='0.0.2',
|
||||
description='functools module for MicroPython',
|
||||
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
|
||||
url='https://github.com/micropython/micropython/issues/405',
|
||||
|
|
Ładowanie…
Reference in New Issue