diff --git a/transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala b/transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala index cc5db38cd..d6ea1db2d 100644 --- a/transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala +++ b/transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala @@ -77,7 +77,7 @@ object PrintLinearizedMutableEOWithCage { case _ : ImportModule => List() case _ : ImportSymbol => List() case _ : ImportAllSymbols => List() - case ClassDef(name, bases, body, decorators, ann) if bases.length <= 1 && decorators.l.isEmpty => + case ClassDef(name, bases, body, decorators, ann) if decorators.l.isEmpty => val Suite(l0, _) = GenericStatementPasses.simpleProcStatement(GenericStatementPasses.unSuite)(body) val l = l0.filter{ case Pass(_) => false case _ => true } val init : Option[FuncDef] = l0 diff --git a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/compound-statements/class/multiple-inheritance.yaml b/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/compound-statements/class/multiple-inheritance.yaml index af1bd939c..5f6c19260 100644 --- a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/compound-statements/class/multiple-inheritance.yaml +++ b/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/compound-statements/class/multiple-inheritance.yaml @@ -1,4 +1,4 @@ -enabled: False +enabled: True python: | def multiInh(): class c: