Open JSAbrahams opened 2 years ago
Context builder does not recognize field inits in python constructors.
Build context from following class written in Python:
class MyClass: def __init__(self, a: int): self.a = a
It should produce a context with MyClass which has one field a: Int. However, the class has no such field.
MyClass
a: Int
We should traverse the constructor and make not of all assignments to self.
Description of Bug
Context builder does not recognize field inits in python constructors.
How to Reproduce
Build context from following class written in Python:
Expected behavior
It should produce a context with
MyClass
which has one fielda: Int
. However, the class has no such field.Additional context
We should traverse the constructor and make not of all assignments to self.