@@ -324,6 +324,7 @@ class TransformMapper(CachedMapper[ArrayOrNames, FunctionDefinition, []]):
324
324
implement default mapper methods; for that, see :class:`CopyMapper`.
325
325
326
326
"""
327
+ # FIXME: This inflates recursion depth
327
328
def rec_ary (self , expr : Array ) -> Array :
328
329
res = self .rec (expr )
329
330
assert isinstance (res , Array )
@@ -335,6 +336,7 @@ def rec_ary(self, expr: Array) -> Array:
335
336
# {{{ TransformMapperWithExtraArgs
336
337
337
338
class TransformMapperWithExtraArgs (
339
+ # Why multiple inheriting?
338
340
CachedMapper [ArrayOrNames , FunctionDefinition , P ],
339
341
Mapper [ArrayOrNames , FunctionDefinition , P ]
340
342
):
@@ -345,6 +347,7 @@ class TransformMapperWithExtraArgs(
345
347
The logic in :class:`TransformMapper` purposely does not take the extra
346
348
arguments to keep the cost of its each call frame low.
347
349
"""
350
+ # FIXME: This inflates recursion depth
348
351
def rec_ary (self , expr : Array , * args : P .args , ** kwargs : P .kwargs ) -> Array :
349
352
res = self .rec (expr , * args , ** kwargs )
350
353
assert isinstance (res , Array )
0 commit comments