Skip to content

Commit a33fedf

Browse files
authored
Merge pull request #663 from OP2/mapper_init_defn
[loopycompat.Mappers]: call super's constructor
2 parents 8697788 + a4887c7 commit a33fedf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyop2/codegen/loopycompat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class DimChanger(IdentityMapper):
3232
def __init__(self, callee_arg_dict, desired_shape):
3333
self.callee_arg_dict = callee_arg_dict
3434
self.desired_shape = desired_shape
35+
super().__init__()
3536

3637
def map_subscript(self, expr):
3738
if expr.aggregate.name not in self.callee_arg_dict:
@@ -130,6 +131,7 @@ def _shape_1_if_empty(shape_caller, shape_callee):
130131
class _FunctionCalledChecker(CombineMapper):
131132
def __init__(self, func_name):
132133
self.func_name = func_name
134+
super().__init__()
133135

134136
def combine(self, values):
135137
return any(values)

0 commit comments

Comments
 (0)