Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Co-authored-by: pierrenodet <[email protected]>
  • Loading branch information
ebonnal and pierrenodet committed Jan 26, 2025
1 parent 4edf2fb commit 1a9e228
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions streamable/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from streamable.stream import Stream
from streamable.util.functiontools import star
from streamable.util.functiontools import running
from streamable.util.functiontools import running, star
3 changes: 2 additions & 1 deletion streamable/util/functiontools.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ def running(func: Callable[[R, T], R], initial: R) -> Callable[[T], R]:
TODO
"""
acc = initial

def _(elem: T) -> R:
nonlocal acc
acc = func(acc, elem)
return acc
return _

return _

0 comments on commit 1a9e228

Please sign in to comment.