JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

Parents of classes in context do not have arguments #316

Closed JSAbrahams closed 2 years ago

JSAbrahams commented 2 years ago

Description of Bug

How to Reproduce

When building a context from:

class MyType:
    def __init__(self, a: str):
        self.a = a

class MyClass1(MyType):
    other: int = None

    def __init__(self):
        pass

Then GenericClass MyClass1 does have parent MyType. However, GenericParent MyType does not have any arguments.

Expected behavior

It should have one argument with type String.

Additional context

We will have to do a second pass after building the context to assign arguments to all parents.