Closed JSAbrahams closed 2 years ago
Generate stage does not differentiate between multiple parents
Mamba source
class MyType(a: String) class MyType2(b: String) class MyClass1: MyType("asdf"), MyType("qwert") def other: Int
Is converted to:
class MyType: def __init__(self, a: str): self.a = a class MyType2: def __init__(self, b: str): self.b = b class MyClass1(MyType, MyType2): other: int = None def __init__(self): super(MyType, self).__init__("asdf") super(MyType, self).__init__("qwerty")
It should recognize the "qwerty" is intended for the MyType2 parent.
MyType2
super(MyType, self).__init__("asdf") super(MyType2, self).__init__("qwerty")
Description of Bug
Generate stage does not differentiate between multiple parents
How to Reproduce
Mamba source
Is converted to:
Expected behavior
It should recognize the "qwerty" is intended for the
MyType2
parent.