Skip to content

Commit 69bb12c

Browse files
authored
Merge pull request #453 from eriknw/tweaks_2019_07
Minor clean up after recent merges. Nothing of substance.
2 parents 0434ddd + fb4d99d commit 69bb12c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

toolz/curried/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
count,
3737
curry,
3838
diff,
39-
dissoc,
4039
first,
4140
flip,
4241
frequencies,

toolz/functoolz.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def identity(x):
2626

2727
def apply(*func_and_args, **kwargs):
2828
""" Applies a function and returns the results
29+
2930
>>> def double(x): return 2*x
3031
>>> def inc(x): return x + 1
3132
>>> apply(double, 5)
@@ -625,6 +626,7 @@ def pipe(data, *funcs):
625626
626627
See Also:
627628
compose
629+
compose_left
628630
thread_first
629631
thread_last
630632
"""

toolz/tests/test_functoolz.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import inspect
2+
import toolz
23
from toolz.functoolz import (thread_first, thread_last, memoize, curry,
34
compose, compose_left, pipe, complement, do, juxt,
45
flip, excepts, apply)
@@ -627,7 +628,8 @@ def __int__(self):
627628
assert MyClass().my_static_method(0, 1) == '2'
628629

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

632634
# __signature__ is python3 only
633635
if PY3:

0 commit comments

Comments
 (0)