Skip to content

Commit 94be568

Browse files
Tobias AmmannTobias Ammann
Tobias Ammann
authored and
Tobias Ammann
committed
functools: Make partial wrapper pass on return value.
1 parent 23ff630 commit 94be568

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

functools/functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ def partial(func, *args, **kwargs):
22
def _partial(*more_args, **more_kwargs):
33
kw = kwargs.copy()
44
kw.update(more_kwargs)
5-
func(*(args + more_args), **kw)
5+
return func(*(args + more_args), **kw)
66
return _partial
77

88

functools/metadata.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
srctype = micropython-lib
22
type = module
3-
version = 0.0.5
3+
version = 0.0.6

functools/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import optimize_upip
88

99
setup(name='micropython-functools',
10-
version='0.0.5',
10+
version='0.0.6',
1111
description='functools module for MicroPython',
1212
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.",
1313
url='https://github.com/micropython/micropython-lib',

0 commit comments

Comments
 (0)