Skip to content

Commit

Permalink
fix #4
Browse files Browse the repository at this point in the history
I already forgot what does the random list does
  • Loading branch information
zyxkad committed Jan 12, 2025
1 parent 33fdede commit 70efb28
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kpi/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,21 +340,21 @@ def wrapper(fn, /):
nodes.clear()
for t in hint.__args__:
if t is None:
for _, n in nodes0:
for n in nodes0:
nodes.append(n)
else:
g = _get_arg_generator(t)
for _, m in nodes0:
for l, m in nodes0:
n = g(name)
m.then(n)
nodes.append(n)
nodes.append((l, n))
else:
g = _get_arg_generator(hint)
for i, (_, m) in enumerate(nodes):
for i, (l, m) in enumerate(nodes):
n = g(name)
m.then(n)
nodes[i] = n
for n in nodes:
nodes[i] = (l, n)
for _, n in nodes:
if n not in self._entries:
n.runs(lambda src, ctx: fn(self.owner, src, *(ctx[n] for n in namelist)))
self._entries.append(n)
Expand Down

0 comments on commit 70efb28

Please sign in to comment.