Strumenta / pylasu

Apache License 2.0
24 stars 4 forks source link

Support for set type attributes #33

Open ivan-alfonso opened 8 months ago

ivan-alfonso commented 8 months ago

Adding support for ASTs with Set type parameters to ASTTransformer would be valuable. For example, have the ability to address the following metamodel (with a Set type parameter) in a transformation.

@dataclass
class Library(Node):
    books: Set["Book"] = field(default_factory=set)

@dataclass
class Book(Node):
    name: str = ""
ftomassetti commented 8 months ago

Thank you fore reporting this @ivan-alfonso !