Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion toolz/curried/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
count,
curry,
diff,
dissoc,
first,
flip,
frequencies,
Expand Down
2 changes: 2 additions & 0 deletions toolz/functoolz.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def identity(x):

def apply(*func_and_args, **kwargs):
""" Applies a function and returns the results

>>> def double(x): return 2*x
>>> def inc(x): return x + 1
>>> apply(double, 5)
Expand Down Expand Up @@ -625,6 +626,7 @@ def pipe(data, *funcs):

See Also:
compose
compose_left
thread_first
thread_last
"""
Expand Down
4 changes: 3 additions & 1 deletion toolz/tests/test_functoolz.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import inspect
import toolz
from toolz.functoolz import (thread_first, thread_last, memoize, curry,
compose, compose_left, pipe, complement, do, juxt,
flip, excepts, apply)
Expand Down Expand Up @@ -627,7 +628,8 @@ def __int__(self):
assert MyClass().my_static_method(0, 1) == '2'

assert compose(f, h).__wrapped__ is h
assert compose(f, h).__class__.__wrapped__ is None
if hasattr(toolz, 'sandbox'): # only test this with Python version (i.e., not Cython)
assert compose(f, h).__class__.__wrapped__ is None

# __signature__ is python3 only
if PY3:
Expand Down