Skip to content

Commit 9ea074b

Browse files
ebonnalpierrenodet
andcommitted
lint
Co-authored-by: pierrenodet <[email protected]>
1 parent eeb7ab4 commit 9ea074b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

streamable/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
from streamable.stream import Stream
2-
from streamable.util.functiontools import star
3-
from streamable.util.functiontools import running
2+
from streamable.util.functiontools import running, star

streamable/util/functiontools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ def running(func: Callable[[R, T], R], initial: R) -> Callable[[T], R]:
121121
TODO
122122
"""
123123
acc = initial
124+
124125
def _(elem: T) -> R:
125126
nonlocal acc
126127
acc = func(acc, elem)
127128
return acc
128-
return _
129129

130+
return _

0 commit comments

Comments
 (0)