You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the AST structure is defined without using the @dataclass decorator, that is, by defining (manually) the constructor method of the classes and the getter and setter methods of each attribute, then it will be necessary to define also all the attributes of the class as static attributes. In the following example, the books attribute, although defined in the constructor method, must also be defined as a static attribute.
If the AST structure is defined without using the
@dataclass
decorator, that is, by defining (manually) the constructor method of the classes and the getter and setter methods of each attribute, then it will be necessary to define also all the attributes of the class as static attributes. In the following example, thebooks
attribute, although defined in the constructor method, must also be defined as a static attribute.This is necessary for the
ASTTransformer
to correctly recognize the attributes.The text was updated successfully, but these errors were encountered: