Skip to content

Commit

Permalink
bug fix to sequential method
Browse files Browse the repository at this point in the history
  • Loading branch information
a1eaiactaest committed Apr 23, 2024
1 parent d8fb6eb commit 485e8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algo/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_child(obj, key):
else: obj = getattr(obj, k)
return obj

def sequential(l1:List[Callable]): return functools.reduce(lambda x,f: f(x), l1)
def sequential(x, l1:List[Callable]): return functools.reduce(lambda arg,f: f(arg), l1, x)

def colored(st:str, color:Optional[str], background=False):
if color is not None:
Expand Down

0 comments on commit 485e8cb

Please sign in to comment.