Skip to content

Commit

Permalink
call Mapper.rec from CachedMapper too just to avoid copy/paste errors
Browse files Browse the repository at this point in the history
  • Loading branch information
majosm committed Feb 25, 2025
1 parent 4ff4017 commit 99b1d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytato/transform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def rec(self, expr: ArrayOrNames, *args: P.args, **kwargs: P.kwargs) -> ResultT:
except KeyError:
return self._cache.add(
(expr, args, kwargs),
super().rec(expr, *args, **kwargs),
Mapper.rec(self, expr, *args, **kwargs),
key=key)

def rec_function_definition(
Expand All @@ -430,7 +430,7 @@ def rec_function_definition(
except KeyError:
return self._function_cache.add(
(expr, args, kwargs),
super().rec_function_definition(expr, *args, **kwargs),
Mapper.rec_function_definition(self, expr, *args, **kwargs),
key=key)

def clone_for_callee(
Expand Down

0 comments on commit 99b1d47

Please sign in to comment.