Skip to content

Commit

Permalink
Fix small typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Dec 12, 2024
1 parent f1f1b9d commit 3f29c1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/finch/compiled.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

def _recurse(x, /, *, f):
if isinstance(x, tuple | list):
return type(x)(_recurse(xi) for xi in x)
return type(x)(_recurse(xi, f=f) for xi in x)
if isinstance(x, dict):
return {k: _recurse(v) for k, v in x}
return {k: _recurse(v, f=f) for k, v in x}
return f(x)


Expand Down

0 comments on commit 3f29c1a

Please sign in to comment.