pylasu icon indicating copy to clipboard operation
pylasu copied to clipboard

Support for set type attributes

Open ivan-alfonso opened this issue 2 years ago • 1 comments

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 = ""

ivan-alfonso avatar Dec 21 '23 15:12 ivan-alfonso

Thank you fore reporting this @ivan-alfonso !

ftomassetti avatar Dec 22 '23 08:12 ftomassetti